main/task_mqtt.h

Sat, 23 Nov 2019 21:43:14 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 23 Nov 2019 21:43:14 +0100
changeset 37
358bbd5b608e
parent 9
a85995941d0d
child 44
e52d11b8f252
permissions
-rw-r--r--

menuconfig settings now work for I2C display setup. Lot's of code cleanup.

/**
 * @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);


/**
 * @brief Publish node birth
 */
void publishNode(void);


/**
 * @brief Publish units results
 */
void publishUnits(void);


/**
 * @brief Publish measurement logs
 */
void publishLogs(void);


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


#endif

mercurial