Changes required by X-NUCLEO-IDWM01M1 and mbed-os 5.2.2

Dependencies:   ATParser

Dependents:   X_NUCLEO_IDW01M1v2-lapi-1

Fork of SPWF01SA by ST

Files at this revision

API Documentation at this revision

Comitter:
mansiag
Date:
Mon Oct 24 10:37:26 2016 +0000
Parent:
21:cd722edbb644
Child:
23:0b01aa59bb6f
Commit message:
Return -1 when timeout (for supporting non-blocking mode).

Changed in this revision

SPWFSA01.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SPWFSA01.cpp	Tue Sep 27 04:05:46 2016 +0000
+++ b/SPWFSA01.cpp	Mon Oct 24 10:37:26 2016 +0000
@@ -349,7 +349,7 @@
                 return -2;
             }
       if (timer.read_ms() > SPWFSA01_SOCKQ_TIMEOUT) {
-                return -2;
+                return -1;
             }
     }
     if(recv_amount > amount)