pijghffred

Dependencies:   HTTPClient WIZnetInterface mbed

Fork of dweetIo_CloudService_Helloworld_WIZwiki- by ajeet prajapati

Files at this revision

API Documentation at this revision

Comitter:
wiznetw7500
Date:
Thu Jun 21 06:47:02 2018 +0000
Parent:
5:95b9bcc5dd34
Commit message:
dfyuil

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 95b9bcc5dd34 -r d4c1982ab151 main.cpp
--- 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");
diff -r 95b9bcc5dd34 -r d4c1982ab151 mbed.bld
--- a/mbed.bld	Tue Oct 24 04:32:01 2017 +0000
+++ b/mbed.bld	Thu Jun 21 06:47:02 2018 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e7ca05fa8600
\ No newline at end of file