From 8e581b6398b7bd08a72dcac13f4657b6d6721e65 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Thu, 5 Sep 2019 14:19:02 -0400 Subject: [PATCH] deactivate all contexts, but don't check for success --- src/TinyGsmClientSaraR4.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TinyGsmClientSaraR4.h b/src/TinyGsmClientSaraR4.h index 62349ca..62a2cd9 100644 --- a/src/TinyGsmClientSaraR4.h +++ b/src/TinyGsmClientSaraR4.h @@ -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