MQTTPacket

Dependents:   MQTT

Fork of MQTTPacket by MQTT

Files at this revision

API Documentation at this revision

Comitter:
icraggs
Date:
Mon Apr 28 16:07:08 2014 +0000
Parent:
6:68a06bea5429
Child:
8:b97b9873af52
Child:
9:3893bc7343f4
Commit message:
Fix unsubscribe packet

Changed in this revision

MQTTUnsubscribeClient.c Show annotated file Show diff for this revision Revisions of this file
--- 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 */