An AirVantage layer for MQTT
AV_MQTT.h
- Committer:
- Nim65s
- Date:
- 2013-08-13
- Revision:
- 7:da5d90052cec
- Parent:
- 6:b251f6276497
File content as of revision 7:da5d90052cec:
#ifndef AV_MQTT_H #define AV_MQTT_H #include "niMQTT.h" #include "picojson.h" class AV_MQTT: public niMQTT { public: AV_MQTT(char *server, void (*callback)(const char *, const char*), char *username="", char *password="", char *id="mbed", int port=1883, bool debug=false); void pub(char *key, char *value); void publish_received(); protected: char *topic; virtual void call_callback(const char *topic, const char *message); }; #endif