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

Files at this revision

API Documentation at this revision

Comitter:
mbed714
Date:
Fri Jul 19 09:35:44 2013 +0000
Parent:
15:9712c8a208c8
Commit message:
Added send_result printf

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9712c8a208c8 -r ac10f2f5ca42 main.cpp
--- 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;