An AirVantage layer for MQTT

Dependencies:   niMQTT picojson

Dependents:   AV_MQTT_example

AV_MQTT.h

Committer:
Nim65s
Date:
2013-08-08
Revision:
0:37b9835622f9
Child:
6:b251f6276497

File content as of revision 0:37b9835622f9:

#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