thermferm/mqtt.h

changeset 499
602d9968960f
child 504
862de87f9f89
equal deleted inserted replaced
498:4903b4da9d40 499:602d9968960f
1 #ifndef _MQTT_H
2 #define _MQTT_H
3
4 #ifdef HAVE_MOSQUITTO_H
5
6 #define STATUS_CONNECTING 0
7 #define STATUS_CONNACK_RECVD 1
8 #define STATUS_WAITING 2
9
10 #endif
11
12 /*
13 * Public functions
14 */
15 void mqtt_connect(void);
16 void mqtt_disconnect(void);
17 void mqtt_publish_int(char *, char *, int);
18 void mqtt_publish_float(char *, char *, float, int);
19 void mqtt_publish_str(char *, char *, char *);
20
21 #endif

mercurial