blabla
Fork of ESP8266Interface by
Revision 33:727aac1996b8, committed 2015-04-30
- Comitter:
- mbedAustin
- Date:
- Thu Apr 30 21:09:14 2015 +0000
- Parent:
- 32:cf071dc33972
- Child:
- 34:7ccda5d68a00
- Child:
- 35:22d30e936e4c
- Child:
- 36:e1545c6c2cb3
- Commit message:
- Fixed problem TCP.connect() command, the return values were 0/1 when it should have been -1/0 . Tested to work with TCP Test
Changed in this revision
Socket/TCPSocketConnection.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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)