Browse Source

Check for connection before ublox disconnect - don't want to wait 2 mins

v_master
Sara Damiano 5 years ago
parent
commit
38ce7c5478
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/TinyGsmClientUBLOX.h

+ 1
- 0
src/TinyGsmClientUBLOX.h View File

@ -782,6 +782,7 @@ protected:
bool modemDisconnect(uint8_t mux) {
TINY_GSM_YIELD();
if (!modemGetConnected(mux)) return true;
if (isCatM) { // These modems allow a faster "asynchronous" close
sendAT(GF("+USOCL="), mux, GF(",1"));
int rsp = waitResponse(120000L);


Loading…
Cancel
Save