thermferm/mqtt.h

changeset 499
602d9968960f
child 504
862de87f9f89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/thermferm/mqtt.h	Mon May 02 16:15:37 2016 +0200
@@ -0,0 +1,21 @@
+#ifndef	_MQTT_H
+#define	_MQTT_H
+
+#ifdef HAVE_MOSQUITTO_H
+
+#define STATUS_CONNECTING 0
+#define STATUS_CONNACK_RECVD 1
+#define STATUS_WAITING 2
+
+#endif
+
+/*
+ * Public functions
+ */
+void mqtt_connect(void);
+void mqtt_disconnect(void);
+void mqtt_publish_int(char *, char *, int);
+void mqtt_publish_float(char *, char *, float, int);
+void mqtt_publish_str(char *, char *, char *);
+
+#endif

mercurial