Added monitoring feature of ESP8266's UART
Dependents: ESP8266_W7500_Example DualNetworkInterface-Basic
Fork of ESP8266Interface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 45:c180905b5b79
- Parent:
- 43:2e326d95fe2c
- Parent:
- 44:3a7b6083210b
- Child:
- 46:913d07795182
--- a/Socket/TCPSocketConnection.cpp Thu May 07 04:00:27 2015 +0000 +++ b/Socket/TCPSocketConnection.cpp Wed Jun 03 18:36:02 2015 +0000 @@ -67,7 +67,7 @@ int TCPSocketConnection::send(char* data, int length) { if (!_is_connected) { - ERR("TCPSocketConnection::receive() - _is_connected is false : you cant receive data untill you connect to a socket!"); + ERR("TCPSocketConnection::receive() - _is_connected is false : you cant receive data until you connect to a socket!"); return -1; } Timer tmr; @@ -130,7 +130,7 @@ int TCPSocketConnection::receive(char* buffer, int length) { if (!_is_connected) { - ERR("TCPSocketConnection::receive() - _is_connected is false : you cant receive data untill you connect to a socket!"); + ERR("TCPSocketConnection::receive() - _is_connected is false : you cant receive data until you connect to a socket!"); return -1; } Timer tmr; @@ -241,5 +241,5 @@ // } // } // return readLen; - return 0; + receive(data,length); }