deactivate all contexts, but don't check for success

This commit is contained in:
Sara Damiano
2019-09-05 14:19:02 -04:00
parent 4b0b4cb38a
commit 8e581b6398

View File

@@ -411,9 +411,10 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
}
bool gprsDisconnect() {
sendAT(GF("+CGACT=0,1")); // Deactivate PDP context 1
// sendAT(GF("+CGACT=0,1")); // Deactivate PDP context 1
sendAT(GF("+CGACT=0")); // Deactivate all contexts
if (waitResponse(40000L) != 1) {
return false;
// return false;
}
sendAT(GF("+CGATT=0")); // detach from GPRS