hi
Dependencies: EthernetInterface mbed-rtos mbed-src
Fork of TCPSocket_HelloWorld by
Diff: main.cpp
- Revision:
- 16:6dd4121c0642
- Parent:
- 11:59dcefdda506
--- a/main.cpp Sun Sep 21 05:55:13 2014 +0000 +++ b/main.cpp Sun Nov 23 16:34:21 2014 +0000 @@ -8,9 +8,9 @@ printf("IP Address is %s\n", eth.getIPAddress()); TCPSocketConnection sock; - sock.connect("mbed.org", 80); + sock.connect("http://192.168.0.233/cgi-bin/ext/e_alarm.cgi?zone=0", 80); - char http_cmd[] = "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\n\n"; + char http_cmd[] = "http://192.168.0.233/cgi-bin/ext/e_alarm.cgi?zone=0"; sock.send_all(http_cmd, sizeof(http_cmd)-1); char buffer[300];