Donatien Garnier
/
NetHttpClientExample
Networking stack: HTTP Client example
Revision 2:58122a485856, committed 2010-05-25
- Comitter:
- donatien
- Date:
- Tue May 25 09:19:45 2010 +0000
- Parent:
- 1:8dbebfb735c0
- Commit message:
Changed in this revision
HttpClientExample.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8dbebfb735c0 -r 58122a485856 HttpClientExample.cpp --- a/HttpClientExample.cpp Tue May 25 09:18:09 2010 +0000 +++ b/HttpClientExample.cpp Tue May 25 09:19:45 2010 +0000 @@ -9,7 +9,15 @@ printf("Start\n"); - eth.setup(); + printf("\r\nSetting up...\r\n"); + EthernetErr ethErr = eth.setup(); + if(ethErr) + { + printf("Error %d in setup.\n", ethErr); + return -1; + } + printf("\r\nSetup OK\r\n"); + HttpText txt; HttpResult r = http.get("http://mbed.org/media/uploads/donatien/hello.txt", &txt); @@ -26,4 +34,7 @@ { } + + return 0; + }