ThingPlug Test

Dependents:   WizFi310_ThingPlug_Test WizFi310_ThingPlug_Test_P

Fork of WizFi310Interface by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
kaizen
Date:
Mon Apr 10 09:54:34 2017 +0000
Parent:
1:16e57103a7dd
Child:
3:dae9a0924a73
Child:
7:b7019399eb1e
Commit message:
Modified Socket Blocking Problem

Changed in this revision

WizFi310Interface.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/WizFi310Interface.cpp	Mon Oct 10 05:12:51 2016 +0000
+++ b/WizFi310Interface.cpp	Mon Apr 10 09:54:34 2017 +0000
@@ -182,7 +182,7 @@
     struct wizfi310_socket *socket = (struct wizfi310_socket *)handle;
  
     int32_t recv = _wizfi310.recv(socket->id, (char*)data, size);
-    if (recv < 0) {
+    if (recv <= 0) {
         return NSAPI_ERROR_WOULD_BLOCK;
     }