![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Delta Robot example
Dependencies: BufferedSerial Eigen
Fork of TCPSocket_Example by
Diff: main.cpp
- Revision:
- 1:965d7fb768b6
- Parent:
- 0:6b383744246e
- Child:
- 3:10fa3102c2d7
diff -r 6b383744246e -r 965d7fb768b6 main.cpp --- a/main.cpp Thu Jan 19 11:46:10 2017 -0600 +++ b/main.cpp Fri Feb 17 16:32:24 2017 +0000 @@ -17,10 +17,10 @@ // Open a socket on the network interface, and create a TCP connection to mbed.org TCPSocket socket; socket.open(&net); - socket.connect("developer.mbed.org", 80); + socket.connect("www.arm.com", 80); // Send a simple http request - char sbuffer[] = "GET / HTTP/1.1\r\nHost: developer.mbed.org\r\n\r\n"; + char sbuffer[] = "GET / HTTP/1.1\r\nHost: www.arm.com\r\n\r\n"; int scount = socket.send(sbuffer, sizeof sbuffer); printf("sent %d [%.*s]\n", scount, strstr(sbuffer, "\r\n")-sbuffer, sbuffer);