Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface IAP mbed-rtos mbed
Fork of TCPSocket_HelloWorld by
Diff: main.cpp
- Revision:
- 16:bfcf5f6274a2
- Parent:
- 11:59dcefdda506
- Child:
- 17:0d74817db362
diff -r 69e41cbbc8ac -r bfcf5f6274a2 main.cpp
--- a/main.cpp Sun Sep 21 05:55:13 2014 +0000
+++ b/main.cpp Wed Apr 22 13:38:58 2015 +0000
@@ -8,9 +8,9 @@
printf("IP Address is %s\n", eth.getIPAddress());
TCPSocketConnection sock;
- sock.connect("mbed.org", 80);
+ sock.connect("httpbin.org", 80);
- char http_cmd[] = "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\n\n";
+ char http_cmd[] = "GET /get?helloworld HTTP/1.0\r\n\r\n";
sock.send_all(http_cmd, sizeof(http_cmd)-1);
char buffer[300];
