An AirVantage layer for MQTT

Dependencies:   niMQTT picojson

Dependents:   AV_MQTT_example

Revision:
0:37b9835622f9
Child:
6:b251f6276497
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AV_MQTT.h	Thu Aug 08 16:08:18 2013 +0000
@@ -0,0 +1,17 @@
+#ifndef AV_MQTT_H
+#define AV_MQTT_H
+
+#include "niMQTT.h"
+
+class AV_MQTT {
+    public:
+        AV_MQTT(char *server, void (*callback)(char *, char*), char *username="", char *password="",  char *id="mbed", int port=1883, bool debug=false);
+        void pub(char *key, char *value);
+
+    private:
+        niMQTT client;
+        char *topic;
+        bool debug;
+};
+
+#endif