Zoltan Hudak
/
TcpClient_ENC28J60
Simple TCP/IP Client using the UIPEthernet library for ENC28J60 Ethernet boards.
Diff: main.cpp
- Revision:
- 1:4e4b811a7f9b
- Parent:
- 0:5e91bb901022
- Child:
- 2:5656f7efd7c7
--- a/main.cpp Sat Dec 05 08:33:16 2015 +0000 +++ b/main.cpp Sat Dec 05 14:42:49 2015 +0000 @@ -69,14 +69,14 @@ for(int i = 0; i < sizeof(pi); i++) pc.printf("0x%x ", data[i]); pc.printf("\r\n"); - pc.printf("Awaiting data from server:\r\n"); + pc.printf("Awaiting message from server:\r\n"); while(client.available() == 0) { if(time(NULL) > timeOut) { printf("Connection timed out.\r\n"); goto close; } } - pc.printf("Data received from server:\r\n"); + pc.printf("Message received from server:\r\n"); int size; while((size = client.available()) > 0) { uint8_t* msg = (uint8_t*)malloc(size); @@ -89,7 +89,7 @@ close: //disconnect client client.stop(); - pc.printf("Client disconnected from server.\r\n"); + pc.printf("Disconnected from server.\r\n"); } else { pc.printf("Failed to connect to server\r\n"); }