From 2b36f70313afbeb1f3a1f5a39291463c5cfad71d Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Tue, 18 Feb 2020 11:45:58 -0500 Subject: [PATCH] Fix SIM7000 cipstatus Signed-off-by: Sara Damiano --- src/TinyGsmClientSIM7000.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TinyGsmClientSIM7000.h b/src/TinyGsmClientSIM7000.h index ee81a45..ddd7ec7 100644 --- a/src/TinyGsmClientSIM7000.h +++ b/src/TinyGsmClientSIM7000.h @@ -598,8 +598,10 @@ class TinyGsmSim7000 : public TinyGsmModem, 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; }