An AirVantage layer for MQTT

Dependencies:   niMQTT picojson

Dependents:   AV_MQTT_example

AV_MQTT.h

Committer:
Nim65s
Date:
2013-08-13
Revision:
6:b251f6276497
Parent:
0:37b9835622f9
Child:
7:da5d90052cec

File content as of revision 6:b251f6276497:

#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;
        void call_callback(const char *topic, const char *message);
};

#endif