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.
Dependents: ESP8266_MQTT_HelloWorld ESP8266_IFTTT_Test ECE_4180_Lab_4 websocketmbed ... more
Fork of ESP8266Interface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 45:c180905b5b79
- Parent:
- 43:2e326d95fe2c
- Parent:
- 44:3a7b6083210b
- Child:
- 46:913d07795182
--- 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);
}

ESP8266-01