pijghffred

Dependencies:   HTTPClient WIZnetInterface mbed

Fork of dweetIo_CloudService_Helloworld_WIZwiki- by ajeet prajapati

Revision:
6:d4c1982ab151
Parent:
5:95b9bcc5dd34
--- a/main.cpp	Tue Oct 24 04:32:01 2017 +0000
+++ b/main.cpp	Thu Jun 21 06:47:02 2018 +0000
@@ -7,7 +7,7 @@
 */
 #define USE_DHCP    1
 //--------- Have to modify the mac address-------------
-unsigned char MAC_Addr[6] = {0x00,0x08,0xDC,0x12,0x34,0x56};
+unsigned char MAC_Addr[6] = {0x00,0x08,0xDC,0x53,0xAE,0x92};
 
 /* IP SET */
 //char IP_Addr[] = "192.168.0.100";
@@ -24,7 +24,7 @@
 
 
   ///  mbed_mac_address((char *)MAC_Addr); //Use mbed mac addres
-    pc.baud(9600);
+    pc.baud(115200);
     #if USE_DHCP
     int ret = ethernet.init(MAC_Addr);
     #else
@@ -56,7 +56,7 @@
 
     while(1)
     {
-        sprintf(msg,"http://dweet.io/dweet/for/%s?a0=%d",nameYouWant,(int)(Sensor.read()*1000));
+        sprintf(msg,"http://dweet.io/dweet/for/%s?a0=%d\r\n",nameYouWant,(int)(Sensor.read()*1000));
         HTTPClient http;
         
         pc.printf("Send post message to dweet.io\r\n");