SimpleSocket 1.0 examples
Dependencies: EthernetNetIf SimpleSocket 1.0 mbed
Diff: Example/echoclient.cpp
- Revision:
- 24:9c7a2e830ef6
- Parent:
- 15:ae9aff693b07
--- a/Example/echoclient.cpp Fri Sep 09 10:35:56 2011 +0000 +++ b/Example/echoclient.cpp Fri Sep 09 10:54:34 2011 +0000 @@ -7,7 +7,7 @@ ClientSocket socket(server, port); if (socket.connected()) { - socket.writef(message); + socket.printf(message); // wait until data is received while (!socket.available())