TCPEchoClient-WIZwiki-W7500
Dependencies: WIZnetInterface mbed DDNS_NoIP
Diff: main.cpp
- Revision:
- 1:86be81112448
- Parent:
- 0:cdef497a8acd
- Child:
- 2:a89cac7c1a3b
diff -r cdef497a8acd -r 86be81112448 main.cpp --- a/main.cpp Wed Jul 22 03:24:47 2015 +0000 +++ b/main.cpp Tue Aug 18 07:00:13 2015 +0000 @@ -36,7 +36,9 @@ // Receive message from server int n = socket.receive(buf, 256); buf[n] = '\0'; + socket.send(buf, sizeof(buf)); printf("Received message from server: '%s' \r\n", buf); + printf("Sended message to server: '%s' \r\n", buf); } }