Waiting for WiFi disconnect

This commit is contained in:
SRGDamia1
2017-10-25 15:11:43 -04:00
parent b3044d2762
commit 16b843ec43
2 changed files with 4 additions and 2 deletions

View File

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

View File

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