From 1bae64ca133673aca0fd8bb88b56bf4a30dfce4b Mon Sep 17 00:00:00 2001 From: SRGDamia1 Date: Thu, 9 Nov 2017 16:48:05 -0500 Subject: [PATCH] 4 is not an acceptable status --- src/TinyGsmClientESP8266.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/TinyGsmClientESP8266.h b/src/TinyGsmClientESP8266.h index a689b22..a479bc5 100644 --- a/src/TinyGsmClientESP8266.h +++ b/src/TinyGsmClientESP8266.h @@ -283,10 +283,10 @@ public: // status of ESP8266 station interface // 2 : ESP8266 station connected to an AP and has obtained IP // 3 : ESP8266 station created a TCP or UDP transmission - // 4 : the TCP or UDP transmission of ESP8266 station disconnected (but AP is connected) + // 4 : the TCP or UDP transmission of ESP8266 station disconnected // 5 : ESP8266 station did NOT connect to an AP waitResponse(); // Returns an OK after the status - if (res2 == 2 || res2 == 3 || res2 == 4) return true; + if (res2 == 2 || res2 == 3) return true; else return false; } @@ -296,7 +296,7 @@ public: int res1 = waitResponse(3000, GF("busy p..."), GF("STATUS:")); if (res1 == 2) { int res2 = waitResponse(GFP(GSM_ERROR), GF("2"), GF("3"), GF("4"), GF("5")); - if (res2 == 2 || res2 == 3 || res2 == 4) { + if (res2 == 2 || res2 == 3) { waitResponse(); return true; } @@ -391,10 +391,10 @@ protected: // status of ESP8266 station interface // 2 : ESP8266 station connected to an AP and has obtained IP // 3 : ESP8266 station created a TCP or UDP transmission - // 4 : the TCP or UDP transmission of ESP8266 station disconnected (but AP is connected) + // 4 : the TCP or UDP transmission of ESP8266 station disconnected // 5 : ESP8266 station did NOT connect to an AP waitResponse(); // Returns an OK after the status - if (res2 == 2 || res2 == 3 || res2 == 4) return true; + if (res2 == 2 || res2 == 3) return true; else return false; }