8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e7b881 + fab0676 commit 14950eaCopy full SHA for 14950ea
libraries/SocketWrapper/src/MbedClient.cpp
@@ -229,6 +229,8 @@ int arduino::MbedClient::available() {
229
}
230
231
int arduino::MbedClient::read() {
232
+ if (sock == nullptr)
233
+ return -1;
234
mutex->lock();
235
if (!available()) {
236
mutex->unlock();
@@ -241,6 +243,8 @@ int arduino::MbedClient::read() {
241
243
242
244
245
int arduino::MbedClient::read(uint8_t *data, size_t len) {
246
247
+ return 0;
248
249
int avail = available();
250
0 commit comments