Program to send NTP data to MQTT broker
Fork of MQTT by
Diff: MQTTClient.h
- Revision:
- 37:e3d64f9b986c
- Parent:
- 36:2f1ada427e56
- Child:
- 40:9623a2c9c8ac
diff -r 2f1ada427e56 -r e3d64f9b986c MQTTClient.h --- 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;