Example program for the SeeedStudio WiFi Shield V2.0, based on UART serial port connectivity (D0/D1 pins). This program connects to WiFi hotspot, obtains an IP using DHCP and downloads http://mbed.org/media/uploads/mbed_official/hello.txt

Dependencies:   WiflyInterface mbed

Files at this revision

API Documentation at this revision

Comitter:
screamer
Date:
Fri Jul 25 10:38:34 2014 +0000
Parent:
5:4ffbaaef3fff
Child:
7:5aef8fc8996d
Commit message:
Update mbed library to the latest revision

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
--- a/main.cpp	Thu Jun 26 12:52:05 2014 +0000
+++ b/main.cpp	Fri Jul 25 10:38:34 2014 +0000
@@ -40,14 +40,14 @@
             break;
         }
     }
-    printf(">>> Got IP address: %s\n", eth.getIPAddress());
+    //printf(">>> Got IP address: %s\n", eth.getIPAddress());
 
     // Prepare the http request to mbed.org
     char http_cmd[] = "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\n\n";
     TCPSocketConnection sock;
     sock.connect("mbed.org", 80);    
     sock.send_all(http_cmd, sizeof(http_cmd)-1);
-    printf(">>> Sent request to mbed.org\n");
+    //printf(">>> Sent request to mbed.org\n");
 
     // Read the response
     char buffer[300];
--- a/mbed.bld	Thu Jun 26 12:52:05 2014 +0000
+++ b/mbed.bld	Fri Jul 25 10:38:34 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae
\ No newline at end of file