![](/media/cache/profiles/f1daf122cde863010844459363cd31db.50x50_q85.jpg)
Example application that connect with a TCP web server.
Dependencies: mbed mbed-rtos EthernetInterface NetworkAPI
Diff: main.cpp
- Revision:
- 11:f4d618b8141f
- Parent:
- 9:4536224842d4
diff -r b260ea0eb330 -r f4d618b8141f main.cpp --- a/main.cpp Wed Jul 18 18:44:02 2012 +0000 +++ b/main.cpp Thu Sep 27 09:32:23 2012 +0000 @@ -37,7 +37,7 @@ do { result = socket.read(buffer); - printf("Received %d bytes:\n\r%s\n\r", result, (char *)buffer.pointer()); + printf("Received %d bytes:\n\r%s\n\r", result, (char *)buffer.data()); } while(result > 0); socket.close();