main/task_mqtt.h

Thu, 07 Nov 2019 22:58:48 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 07 Nov 2019 22:58:48 +0100
changeset 24
64078aa15512
parent 9
a85995941d0d
child 37
358bbd5b608e
permissions
-rw-r--r--

Finished the editor using the rotary switch. Added editing of the MQTT server parameters.

/**
 * @file task_mqtt.h
 * @brief The FreeRTOS task to maintain MQTT connections.
 */

#ifndef	_TASK_MQTT_H
#define	_TASK_MQTT_H



/**
 * @brief Request a MQTT connection
 * @param state Request of disconnect a connection.
 */
void connect_mqtt(bool state);


/**
 * @brief Check if MQTT is connected
 * @return Returns true if MQTT is connected
 */
bool ready_mqtt(void);


void publishNode(void);
void publishUnits(void);
void publishLogs(void);


/**
 * @brief The FreeRTOS task to run MQTT connections.
 */
void task_mqtt(void *);


#endif

mercurial