An API for using MQTT over multiple transports

Dependencies:   FP MQTTPacket

Dependents:   Cellular_HelloMQTT IoTStarterKit GSwifiInterface_HelloMQTT IBMIoTClientEthernetExample ... more

This library is part of the EclipseTM Paho project; specifically the embedded client.

The goals of this API are:

  1. to be independent of any system library: hence templates parameters for networking, timer and threading classes
  2. not to rely on heap storage, only automatic (I think this is a good thing)
  3. to limit memory use, for instance by defining the size of the buffers and arrays used at object creation time

Files at this revision

API Documentation at this revision

Comitter:
icraggs
Date:
Thu Aug 21 12:40:43 2014 +0000
Parent:
41:b7e86fa6dbb8
Child:
43:21da1f744243
Commit message:
latest updates

Changed in this revision

MQTTClient.h Show annotated file Show diff for this revision Revisions of this file
--- a/MQTTClient.h	Fri Aug 15 10:23:56 2014 +0000
+++ b/MQTTClient.h	Thu Aug 21 12:40:43 2014 +0000
@@ -123,6 +123,12 @@
         defaultMessageHandler.attach(mh);
     }
     
+    void setLogHandler()
+    {
+        logHandler.attach(lh);
+    }
+
+    
     /** MQTT Connect - send an MQTT connect packet down the network and wait for a Connack
      *  The nework object must be connected to the network endpoint before calling this 
      *  @param options - connect options
@@ -241,6 +247,8 @@
     {
         ping_timer.countdown(this->keepAliveInterval); // record the fact that we have successfully sent the packet    
         rc = SUCCESS;
+        //if (debug)
+        // Log (packet)
     }
     else
         rc = FAILURE;