Browse Source

deactivate all contexts, but don't check for success

v_master
Sara Damiano 5 years ago
parent
commit
8e581b6398
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/TinyGsmClientSaraR4.h

+ 3
- 2
src/TinyGsmClientSaraR4.h 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


Loading…
Cancel
Save