Browse Source

Waiting for WiFi disconnect

v_master
SRGDamia1 7 years ago
parent
commit
16b843ec43
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      src/TinyGsmClientESP8266.h
  2. +1
    -1
      src/TinyGsmClientXBee.h

+ 3
- 1
src/TinyGsmClientESP8266.h View File

@ -330,7 +330,9 @@ public:
bool networkDisconnect() {
sendAT(GF("+CWQAP"));
return waitResponse(10000L) == 1;
bool retVal = waitResponse(10000L) == 1;
waitResponse(GF("WIFI DISCONNECT"));
return retVal;
}
String getLocalIP() {


+ 1
- 1
src/TinyGsmClientXBee.h View File

@ -608,7 +608,7 @@ finish:
data.replace(GSM_NL GSM_NL, GSM_NL);
data.replace(GSM_NL, "\r\n ");
if (data.length()) {
DBG("<<< ", data, "\r\n");
// DBG("<<< ", data);
}
}
return index;


Loading…
Cancel
Save