|
1 /** |
|
2 * @file task_mqtt.h |
|
3 * @brief The FreeRTOS task to maintain MQTT connections. |
|
4 */ |
|
5 |
|
6 #ifndef _TASK_MQTT_H |
|
7 #define _TASK_MQTT_H |
|
8 |
|
9 |
|
10 |
|
11 /** |
|
12 * @brief Request a MQTT connection |
|
13 * @param state Request of disconnect a connection. |
|
14 */ |
|
15 void connect_mqtt(bool state); |
|
16 |
|
17 |
|
18 /** |
|
19 * @brief Check if MQTT is connected |
|
20 * @return Returns true if MQTT is connected |
|
21 */ |
|
22 bool ready_mqtt(void); |
|
23 |
|
24 |
|
25 void publishNode(void); |
|
26 void publishUnits(void); |
|
27 |
|
28 |
|
29 /** |
|
30 * @brief The FreeRTOS task to run MQTT connections. |
|
31 */ |
|
32 void task_mqtt(void *); |
|
33 |
|
34 |
|
35 #endif |
|
36 |