An AirVantage layer for MQTT

Dependencies:   niMQTT picojson

Dependents:   AV_MQTT_example

Committer:
Nim65s
Date:
Thu Aug 08 16:08:18 2013 +0000
Revision:
0:37b9835622f9
Child:
6:b251f6276497
First functionnal release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Nim65s 0:37b9835622f9 1 #ifndef AV_MQTT_H
Nim65s 0:37b9835622f9 2 #define AV_MQTT_H
Nim65s 0:37b9835622f9 3
Nim65s 0:37b9835622f9 4 #include "niMQTT.h"
Nim65s 0:37b9835622f9 5
Nim65s 0:37b9835622f9 6 class AV_MQTT {
Nim65s 0:37b9835622f9 7 public:
Nim65s 0:37b9835622f9 8 AV_MQTT(char *server, void (*callback)(char *, char*), char *username="", char *password="", char *id="mbed", int port=1883, bool debug=false);
Nim65s 0:37b9835622f9 9 void pub(char *key, char *value);
Nim65s 0:37b9835622f9 10
Nim65s 0:37b9835622f9 11 private:
Nim65s 0:37b9835622f9 12 niMQTT client;
Nim65s 0:37b9835622f9 13 char *topic;
Nim65s 0:37b9835622f9 14 bool debug;
Nim65s 0:37b9835622f9 15 };
Nim65s 0:37b9835622f9 16
Nim65s 0:37b9835622f9 17 #endif