Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MQTT by
Diff: MQTTClient.h
- Revision:
- 44:c299463ae853
- Parent:
- 43:21da1f744243
- Child:
- 46:e335fcc1a663
--- 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
