MQTTPacket

Dependents:   MQTT

Fork of MQTTPacket by MQTT

Files at this revision

API Documentation at this revision

Comitter:
icraggs
Date:
Mon Mar 31 15:48:23 2014 +0000
Parent:
0:7734401cc1b4
Child:
2:bc3bc0e3b764
Commit message:
Two small corrections

Changed in this revision

MQTTConnect.h Show annotated file Show diff for this revision Revisions of this file
MQTTConnectServer.c Show annotated file Show diff for this revision Revisions of this file
--- a/MQTTConnect.h	Tue Feb 04 22:31:32 2014 +0000
+++ b/MQTTConnect.h	Mon Mar 31 15:48:23 2014 +0000
@@ -97,7 +97,7 @@
 	MQTTString password;
 } MQTTPacket_connectData;
 
-#define MQTTPacket_connectData_initializer { {'M', 'Q', 'T', 'W'}, 0, 3, {NULL, {0, NULL}}, 0, 1, 0, \
+#define MQTTPacket_connectData_initializer { {'M', 'Q', 'T', 'W'}, 0, 3, {"", {0, NULL}}, 60, 1, 0, \
 		MQTTPacket_willOptions_initializer, {NULL, {0, NULL}}, {NULL, {0, NULL}} }
 
 int MQTTSerialize_connect(char* buf, int buflen, MQTTPacket_connectData* options);
--- a/MQTTConnectServer.c	Tue Feb 04 22:31:32 2014 +0000
+++ b/MQTTConnectServer.c	Mon Mar 31 15:48:23 2014 +0000
@@ -38,7 +38,7 @@
 			min(4, protocol->lenstring.len)))
 		rc = 1;
 
-	return 1;
+	return rc;
 }