
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
Diff: main.cpp
- Revision:
- 11:e26d01206ed4
- Parent:
- 8:f8bb043cf183
--- a/main.cpp Fri Feb 13 09:39:18 2015 +0000 +++ b/main.cpp Wed Mar 18 15:11:40 2015 +0000 @@ -63,7 +63,7 @@ // 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.connect("developer.mbed.org", 80); sock.send_all(http_cmd, sizeof(http_cmd)-1); //printf(">>> Sent request to mbed.org\n");