My Modify MQTTPacket Packet size 100 -> 400
Fork of MQTTPacket by
Diff: MQTTConnect.h
- Revision:
- 3:4a4f8699f935
- Parent:
- 1:069ae45b7070
- Child:
- 4:c502573c6016
--- a/MQTTConnect.h Thu Apr 10 15:11:16 2014 +0000
+++ b/MQTTConnect.h Thu Apr 10 22:54:14 2014 +0000
@@ -80,13 +80,9 @@
{
/** The eyecatcher for this structure. must be MQTC. */
char struct_id[4];
- /** The version number of this structure. Must be 0, 1 or 2.
- * 0 signifies no SSL options and no serverURIs
- * 1 signifies no serverURIs
- */
+ /** The version number of this structure. Must be 0 */
int struct_version;
- /** Version of MQTT to be used. 3 = 3.1 4 = 3.1.1
- */
+ /** Version of MQTT to be used. 3 = 3.1 4 = 3.1.1 */
int MQTTVersion;
MQTTString clientID;
int keepAliveInterval;
@@ -97,7 +93,7 @@
MQTTString password;
} MQTTPacket_connectData;
-#define MQTTPacket_connectData_initializer { {'M', 'Q', 'T', 'W'}, 0, 3, {"", {0, NULL}}, 60, 1, 0, \
+#define MQTTPacket_connectData_initializer { {'M', 'Q', 'T', 'C'}, 0, 4, {NULL, {0, NULL}}, 60, 1, 0, \
MQTTPacket_willOptions_initializer, {NULL, {0, NULL}}, {NULL, {0, NULL}} }
int MQTTSerialize_connect(char* buf, int buflen, MQTTPacket_connectData* options);
