for testing wifi

Dependents:   ESP8266_Test_WIFI

Fork of ESP8266Interface by Steve Kim

Revision:
45:c180905b5b79
Parent:
43:2e326d95fe2c
Parent:
44:3a7b6083210b
Child:
46:913d07795182
diff -r 2e326d95fe2c -r c180905b5b79 Socket/TCPSocketConnection.cpp
--- 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);
 }