cc
Diff: SpwfInterface.cpp
- Revision:
- 4:2f3f156a3b0b
- Parent:
- 3:4c2cbca19031
- Child:
- 5:8ee8698d19e3
--- a/SpwfInterface.cpp Thu Jul 07 11:06:10 2016 +0000 +++ b/SpwfInterface.cpp Thu Jul 07 13:21:57 2016 +0000 @@ -335,8 +335,8 @@ //CHECK:Receive for both Client and Server Sockets same? recv = _spwf.recv(socket->id, (char*)data, (uint32_t)size); if (recv < 0) { - //printf("ret -1\r\n"); - return NSAPI_ERROR_WOULD_BLOCK; + wait_ms(1);//delay of 1ms <for F4>?? + return NSAPI_ERROR_WOULD_BLOCK;//send this if we want to block call (else timeout will happen) } return recv;