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.
Diff: MQTTClient.h
- Revision:
- 37:e3d64f9b986c
- Parent:
- 36:2f1ada427e56
- Child:
- 40:9623a2c9c8ac
--- a/MQTTClient.h Fri Aug 01 14:45:25 2014 +0000
+++ b/MQTTClient.h Fri Aug 01 17:01:13 2014 +0000
@@ -53,9 +53,7 @@
struct MessageData
{
MessageData(MQTTString &aTopicName, struct Message &aMessage) : message(aMessage), topicName(aTopicName)
- {
-
- }
+ { }
struct Message &message;
MQTTString &topicName;
@@ -538,7 +536,8 @@
if (waitfor(CONNACK, connect_timer) == CONNACK)
{
unsigned char connack_rc = 255;
- if (MQTTDeserialize_connack(&connack_rc, readbuf, MAX_MQTT_PACKET_SIZE) == 1)
+ bool sessionPresent = false;
+ if (MQTTDeserialize_connack((unsigned char*)&sessionPresent, &connack_rc, readbuf, MAX_MQTT_PACKET_SIZE) == 1)
rc = connack_rc;
else
rc = FAILURE;