Init
Fork of ESP8266Interface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 33:727aac1996b8
- Parent:
- 32:cf071dc33972
- Child:
- 40:0a83315aea0a
- Child:
- 44:3a7b6083210b
--- a/Socket/TCPSocketConnection.cpp Thu Apr 30 19:07:37 2015 +0000 +++ b/Socket/TCPSocketConnection.cpp Thu Apr 30 21:09:14 2015 +0000 @@ -52,8 +52,11 @@ // } // _is_connected = true; _is_connected = ESP8266->start(ESP_TCP_TYPE,_ipAddress,_port); - - return _is_connected; + if(_is_connected) { //success + return 0; + } else { // fail + return -1; + } } bool TCPSocketConnection::is_connected(void)