SimpleThing

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of TCPSocket_HelloWorld by mbed official

Files at this revision

API Documentation at this revision

Comitter:
ganeshgore
Date:
Mon Jun 08 06:42:13 2015 +0000
Parent:
14:72be2b8b7f24
Commit message:
Initial;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 72be2b8b7f24 -r a15d0b575131 main.cpp
--- a/main.cpp	Wed May 14 15:07:26 2014 +0000
+++ b/main.cpp	Mon Jun 08 06:42:13 2015 +0000
@@ -8,9 +8,9 @@
     printf("IP Address is %s\n", eth.getIPAddress());
     
     TCPSocketConnection sock;
-    sock.connect("mbed.org", 80);
+    sock.connect("data.sparkfun.com", 80);
     
-    char http_cmd[] = "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\n\n";
+    char http_cmd[] = "GET /input/pw19y5K1J9ILGj3o8ObA?private_key=64e8m7gey8UNXgl69GZJ&variable1=10&variable2=12 HTTP/1.0\n\n";
     sock.send_all(http_cmd, sizeof(http_cmd)-1);
     
     char buffer[300];