Wed, 29 Jan 2020 16:58:04 +0100
Added COLOR_METHOD, IBU_METHOD, MAGNESIUM fields.
0 | 1 | #ifndef _MQTT_H |
2 | #define _MQTT_H | |
3 | ||
4 | #define STATUS_CONNECTING 0 | |
5 | #define STATUS_CONNACK_RECVD 1 | |
6 | #define STATUS_WAITING 2 | |
7 | ||
8 | ||
9 | /** | |
10 | * @brief Connect to the MQTT server. | |
11 | * @return 0 if success, else the connection failed. | |
12 | */ | |
13 | int mqtt_connect(void); | |
14 | ||
15 | /** | |
16 | * @brief Disconnect from the MQTT server. | |
17 | */ | |
18 | void mqtt_disconnect(void); | |
19 | ||
20 | #endif |