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: ESP8266
Fork of ESP8266Interface by
Diff: ESP8266Interface.cpp
- Revision:
- 54:e78fad32cfff
- Parent:
- 51:eb8c3577e22d
- Child:
- 55:c0808849cb89
--- a/ESP8266Interface.cpp Wed Mar 09 06:11:11 2016 +0000
+++ b/ESP8266Interface.cpp Fri Apr 01 17:28:04 2016 +0000
@@ -142,7 +142,7 @@
return NS_ERROR_TIMEOUT;
}
- return 0;
+ return size;
}
int32_t ESP8266Interface::ESP8266Socket::recv(void *data, uint32_t size)
@@ -152,7 +152,7 @@
int32_t recv = _esp->recv(_id, data, size);
if (recv < 0) {
- return 0;
+ return NS_ERROR_WOULD_BLOCK;
}
return recv;
