My Modify MQTTPacket Packet size 100 -> 400
Fork of MQTTPacket by
Diff: MQTTUnsubscribeClient.c
- Revision:
- 12:cd99ac9cb25a
- Parent:
- 7:1b8fb13fc6ef
- Child:
- 14:c2052aee81de
--- a/MQTTUnsubscribeClient.c Tue May 06 10:57:57 2014 +0100
+++ b/MQTTUnsubscribeClient.c Fri Aug 01 13:03:52 2014 +0100
@@ -62,7 +62,7 @@
}
header.byte = 0;
- header.bits.type = UNSUBSCRIBE;
+ header.bits.type = SUBSCRIBE;
header.bits.dup = dup;
header.bits.qos = 1;
writeChar(&ptr, header.byte); /* write header */
@@ -91,7 +91,7 @@
int MQTTDeserialize_unsuback(int* packetid, char* buf, int buflen)
{
int type = 0;
- int dup = 0;
+ unsigned char dup = 0;
int rc = 0;
FUNC_ENTRY;
