Browse Source

Tweek NETCLOSE

v_master
Sara Damiano 5 years ago
parent
commit
05afd74dad
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/TinyGsmClientSIM5360.h

+ 2
- 1
src/TinyGsmClientSIM5360.h View File

@ -411,8 +411,9 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
// Stop the socket service // Stop the socket service
// Note: all sockets should be closed first // Note: all sockets should be closed first
sendAT(GF("+NETCLOSE")); sendAT(GF("+NETCLOSE"));
if (waitResponse(60000L) != 1)
if (waitResponse(60000L, GF(GSM_NL "+NETCLOSE: 0")) != 1) {
return false; return false;
}
sendAT(GF("+CGACT=1,0")); // Deactivate PDP context 1 sendAT(GF("+CGACT=1,0")); // Deactivate PDP context 1
if (waitResponse(40000L) != 1) { if (waitResponse(40000L) != 1) {


Loading…
Cancel
Save