MQTTPacket fixes

Fork of MQTTPacket by MQTT

Files at this revision

API Documentation at this revision

Comitter:
icraggs
Date:
Fri Aug 01 16:27:19 2014 +0000
Parent:
14:c2052aee81de
Child:
16:d0b3886ada32
Commit message:
Fix unsubscribe packet type

Changed in this revision

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