Published
Dependencies: DHT MQTTforLecture WIZnetInterface mbed-src
Fork of w7500-paho-mqtt by
Revision 14:2b30a541da82, committed 2015-09-20
- Comitter:
- bangbh
- Date:
- Sun Sep 20 06:11:10 2015 +0000
- Parent:
- 13:36456500fb7e
- Child:
- 15:d4604c47da41
- Commit message:
- lecture
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Sep 20 05:17:13 2015 +0000
+++ b/main.cpp Sun Sep 20 06:11:10 2015 +0000
@@ -44,7 +44,7 @@
MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
data.MQTTVersion = 3;
- data.clientID.cstring = "WIZwiki-W7500a";
+ sprintf(data.clientID.cstring,"WIZwiki-W7500-client-%d",rand()%1000);
data.username.cstring = "testuser";
data.password.cstring = "testpassword";
