Basic C library for MQTT packet serialization and deserialization

Dependents:   MQTT MQTT MQTT MQTT ... more

Fork of MQTTPacket by MQTT

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

A basic MQTT library in C for packet serialization and deserialization

Revision:
3:4a4f8699f935
Parent:
0:7734401cc1b4
Child:
4:c502573c6016
--- a/MQTTPacket.c	Thu Apr 10 15:11:16 2014 +0000
+++ b/MQTTPacket.c	Thu Apr 10 22:54:14 2014 +0000
@@ -200,6 +200,8 @@
 	}
 	else if (mqttstring.cstring)
 		writeCString(pptr, mqttstring.cstring);
+	else
+		writeInt(pptr, 0);
 }