Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial
Dependents: esp8266_nodeMCU1 esp8266_2_thingspeak1 Solarator_0-0-2 IoTBurglar_and_Fire_AlarmSystem ... more
Fork of ESP8266Interface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 33:727aac1996b8
- Parent:
- 32:cf071dc33972
- Child:
- 40:0a83315aea0a
- Child:
- 44:16da10e7b3f7
--- 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)