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:
7:1b8fb13fc6ef
Parent:
0:7734401cc1b4
Child:
12:cd99ac9cb25a
--- a/MQTTUnsubscribeClient.c	Mon Apr 14 21:59:59 2014 +0100
+++ b/MQTTUnsubscribeClient.c	Mon Apr 28 16:07:08 2014 +0000
@@ -62,7 +62,7 @@
 	}
 
 	header.byte = 0;
-	header.bits.type = SUBSCRIBE;
+	header.bits.type = UNSUBSCRIBE;
 	header.bits.dup = dup;
 	header.bits.qos = 1;
 	writeChar(&ptr, header.byte); /* write header */