Browse Source

Fix SIM7000 cipstatus

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
v_master
Sara Damiano 5 years ago
parent
commit
2b36f70313
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/TinyGsmClientSIM7000.h

+ 3
- 1
src/TinyGsmClientSIM7000.h View File

@ -598,8 +598,10 @@ class TinyGsmSim7000 : public TinyGsmModem<TinyGsmSim7000>,
bool modemGetConnected(uint8_t mux) {
sendAT(GF("+CIPSTATUS="), mux);
waitResponse(GF("+CIPSTATUS"));
int8_t res = waitResponse(GF(",\"CONNECTED\""), GF(",\"CLOSED\""),
GF(",\"CLOSING\""), GF(",\"INITIAL\""));
GF(",\"CLOSING\""), GF(",\"REMOTE CLOSING\""),
GF(",\"INITIAL\""));
waitResponse();
return 1 == res;
}


Loading…
Cancel
Save