Waiting for WiFi disconnect
This commit is contained in:
@@ -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() {
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user