Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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";
