MQTT configuration with WizFi310

Dependencies:   DHT MQTT WizFi310Interface_Legacynew mbed-src

Fork of w7500-mqtt-wizfi310 by Akshay Tom

Revision:
14:2b30a541da82
Parent:
13:36456500fb7e
Child:
15:d4604c47da41
--- 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";