diff -r 000000000000 -r 88d965579617 main/task_mqtt.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main/task_mqtt.h Tue Oct 08 12:00:31 2019 +0200 @@ -0,0 +1,36 @@ +/** + * @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); + + +/** + * @brief The FreeRTOS task to run MQTT connections. + */ +void task_mqtt(void *); + + +#endif +