lpc1768-picotcp-eth to revision 8, PicoTCP to revision 41 (mbed-rtos to revision 12, mbed to revision 63)

Dependencies:   PicoTCP lpc1768-picotcp-eth mbed-rtos mbed

Fork of TCPSocket_HelloWorldTest by Daniel Peter

Revision:
16:ac10f2f5ca42
Parent:
14:c3694118dd57
--- a/main.cpp	Wed Jul 17 17:13:27 2013 +0000
+++ b/main.cpp	Fri Jul 19 09:35:44 2013 +0000
@@ -44,7 +44,9 @@
         // send command
         printf("Sending at %d seconds\n", time(NULL));
         char http_cmd[] = "GET /media/uploads/mbed_official/hello.txt HTTP/1.0\n\n";
-        sock.send_all(http_cmd, sizeof(http_cmd) - 1);
+        int send_result = sock.send_all(http_cmd, sizeof(http_cmd) - 1);
+        if (send_result <= 0)
+            printf("Internal stack error : %d\n", pico_err);
 
         // receive response
         int received = 0;