From 05afd74dade741c07e39bc68e98171c7c91453fc Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Fri, 19 Jul 2019 15:08:25 -0400 Subject: [PATCH] Tweek NETCLOSE --- src/TinyGsmClientSIM5360.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TinyGsmClientSIM5360.h b/src/TinyGsmClientSIM5360.h index b89fe52..30cf2c5 100644 --- a/src/TinyGsmClientSIM5360.h +++ b/src/TinyGsmClientSIM5360.h @@ -411,8 +411,9 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK() // Stop the socket service // Note: all sockets should be closed first sendAT(GF("+NETCLOSE")); - if (waitResponse(60000L) != 1) + if (waitResponse(60000L, GF(GSM_NL "+NETCLOSE: 0")) != 1) { return false; + } sendAT(GF("+CGACT=1,0")); // Deactivate PDP context 1 if (waitResponse(40000L) != 1) {