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:
17:c5bd28cc139a
Parent:
15:f0ae0b8d4418
--- a/MQTTUnsubscribeClient.c	Fri Aug 01 16:58:18 2014 +0000
+++ b/MQTTUnsubscribeClient.c	Fri Aug 01 17:25:52 2014 +0000
@@ -50,7 +50,7 @@
 		int count, MQTTString topicFilters[])
 {
 	unsigned char *ptr = buf;
-	MQTTHeader header;
+	MQTTHeader header = {0};
 	int rem_len = 0;
 	int rc = -1;
 	int i = 0;