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

Revision:
6:f80c278ca79c
Parent:
4:c45472e3e931
Child:
7:5aef8fc8996d
--- 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];