An MQTT Client for the new etherNet Interface.

Dependencies:   EthernetInterface mbed-rtos

Dependents:   AV_MQTT niMQTT_example

Revision:
6:661892e00fe1
Parent:
4:afbc7b066cff
Child:
8:438958bb9df3
diff -r 3d21020a2826 -r 661892e00fe1 niMQTT.h
--- a/niMQTT.h	Mon Aug 12 15:31:55 2013 +0000
+++ b/niMQTT.h	Tue Aug 13 12:26:57 2013 +0000
@@ -64,7 +64,7 @@
          * \param password your password for the server
          * \param debug get a more verbose output
          */
-        niMQTT(char *server, void (*callback)(char *, char*), char *id="mbed", int port=1883, char *username="", char *password="", bool debug=false);
+        niMQTT(char *server, void (*callback)(const char *, const char*), char *id="mbed", int port=1883, char *username="", char *password="", bool debug=false);
         void reconnect();
         ~niMQTT();
 
@@ -79,11 +79,11 @@
          */
         int sub(char *topic, bool unsub=false);
 
-    private:
+    protected:
         char *server;
         int port;
         char *id;
-        void (*callback)(char *, char*);
+        void (*callback)(const char *, const char*);
         char *username;
         char *password;