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:
15:f0ae0b8d4418
Parent:
14:c2052aee81de
Child:
17:c5bd28cc139a
--- a/MQTTUnsubscribeClient.c	Fri Aug 01 15:34:04 2014 +0100
+++ b/MQTTUnsubscribeClient.c	Fri Aug 01 16:27:19 2014 +0000
@@ -63,7 +63,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 */