556:c2ee7f9a069e | 557:ae17042a6d39 |
---|---|
1 #ifndef _MQTT_H | 1 #ifndef _MQTT_H |
2 #define _MQTT_H | 2 #define _MQTT_H |
3 | 3 |
4 #ifdef HAVE_MOSQUITTO_H | |
5 | 4 |
6 #define STATUS_CONNECTING 0 | 5 #define STATUS_CONNECTING 0 |
7 #define STATUS_CONNACK_RECVD 1 | 6 #define STATUS_CONNACK_RECVD 1 |
8 #define STATUS_WAITING 2 | 7 #define STATUS_WAITING 2 |
9 | 8 |
51 * @param birth If true send a birh message, else a regular data update. | 50 * @param birth If true send a birh message, else a regular data update. |
52 * @param flag Bit flag to enable control messages. | 51 * @param flag Bit flag to enable control messages. |
53 */ | 52 */ |
54 void publishNData(bool birth, int flag); | 53 void publishNData(bool birth, int flag); |
55 | 54 |
56 #endif | |
57 | 55 |
58 #endif | 56 #endif |