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:
Mon Oct 06 11:41:05 2014 +0000
Parent:
43:21da1f744243
Child:
45:37f007d2a8ae
Commit message:
Fix buf reference in disconnect

Changed in this revision

MQTTClient.h Show annotated file Show diff for this revision Revisions of this file
--- a/MQTTClient.h	Mon Sep 29 11:34:26 2014 +0000
+++ b/MQTTClient.h	Mon Oct 06 11:41:05 2014 +0000
@@ -863,7 +863,7 @@
 {
     int rc = FAILURE;
     Timer timer = Timer(command_timeout_ms);     // we might wait for incomplete incoming publishes to complete
-    int len = MQTTSerialize_disconnect(buf, MAX_MQTT_PACKET_SIZE);
+    int len = MQTTSerialize_disconnect(sendbuf, MAX_MQTT_PACKET_SIZE);
     if (len > 0)
         rc = sendPacket(len, timer);            // send the disconnect packet