bmsd/mqtt.h

changeset 679
48f8f3fce7c0
parent 0
033898178630
equal deleted inserted replaced
678:14322825cb3d 679:48f8f3fce7c0
3 3
4 #define STATUS_CONNECTING 0 4 #define STATUS_CONNECTING 0
5 #define STATUS_CONNACK_RECVD 1 5 #define STATUS_CONNACK_RECVD 1
6 #define STATUS_WAITING 2 6 #define STATUS_WAITING 2
7 7
8
9 /**
10 * @brief Publish MQTT message.
11 * @param topic The topic part of the message.
12 * @param payload The payload part of the message.
13 */
14 void mqtt_publish(char *topic, char *payload);
8 15
9 /** 16 /**
10 * @brief Connect to the MQTT server. 17 * @brief Connect to the MQTT server.
11 * @return 0 if success, else the connection failed. 18 * @return 0 if success, else the connection failed.
12 */ 19 */

mercurial