Added monitoring feature of ESP8266's UART

Dependents:   ESP8266_W7500_Example DualNetworkInterface-Basic

Fork of ESP8266Interface by ESP8266

Revision:
33:727aac1996b8
Parent:
32:cf071dc33972
Child:
40:0a83315aea0a
Child:
44:3a7b6083210b
diff -r cf071dc33972 -r 727aac1996b8 Socket/TCPSocketConnection.cpp
--- 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)