mirror of
https://github.com/KevinMidboe/TinyGSM.git
synced 2025-10-29 18:00:18 +00:00
deactivate all contexts, but don't check for success
This commit is contained in:
@@ -411,9 +411,10 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool gprsDisconnect() {
|
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) {
|
if (waitResponse(40000L) != 1) {
|
||||||
return false;
|
// return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sendAT(GF("+CGATT=0")); // detach from GPRS
|
sendAT(GF("+CGATT=0")); // detach from GPRS
|
||||||
|
|||||||
Reference in New Issue
Block a user