From 94d26c04ef786ef65f026ed9806bd7ff6f81623a Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Fri, 20 Sep 2019 22:07:59 +0300 Subject: [PATCH 1/3] Update README.md Move @SRGDamia1 to Primary Authors/Contributors --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 2784cfe..4ab951a 100644 --- a/README.md +++ b/README.md @@ -116,9 +116,8 @@ Watch this repo for new updates! And of course, contributions are welcome ;) - SIM800, SIM and SIM7000 only **Credits** -- Primary Author/Contributor: +- Primary Authors/Contributors: - [vshymanskyy](https://github.com/vshymanskyy) -- Digi XBee, editing of all modules: - [SRGDamia1](https://github.com/SRGDamia1/) - SIM7000: - [captFuture](https://github.com/captFuture/) From 735c8b70694c94aa86441de7ae84853c01dc9383 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Mon, 23 Sep 2019 13:33:57 -0400 Subject: [PATCH 2/3] Fix A6 warning --- src/TinyGsmClientA6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TinyGsmClientA6.h b/src/TinyGsmClientA6.h index 449d330..15a19f1 100644 --- a/src/TinyGsmClientA6.h +++ b/src/TinyGsmClientA6.h @@ -593,7 +593,7 @@ protected: return len; } - bool modemGetConnected(uint8_t mux) { + bool modemGetConnected(uint8_t) { sendAT(GF("+CIPSTATUS")); //TODO mux? int res = waitResponse(GF(",\"CONNECTED\""), GF(",\"CLOSED\""), GF(",\"CLOSING\""), GF(",\"INITIAL\"")); waitResponse(); From a27d39c7f9b6e2df809573c20cd7312af6a7e821 Mon Sep 17 00:00:00 2001 From: Bernd Giesecke Date: Sat, 23 Nov 2019 12:28:28 +0800 Subject: [PATCH 3/3] Fix BG96 bugs - bool isGprsConnected() is now returning correct status - bool modemGetConnected() is now working as expected --- src/TinyGsmClientBG96.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/TinyGsmClientBG96.h b/src/TinyGsmClientBG96.h index c9f4510..f21a56b 100644 --- a/src/TinyGsmClientBG96.h +++ b/src/TinyGsmClientBG96.h @@ -338,7 +338,21 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK() return true; } -TINY_GSM_MODEM_GET_GPRS_IP_CONNECTED() + // TINY_GSM_MODEM_GET_GPRS_IP_CONNECTED() + bool isGprsConnected() + { + sendAT(GF("+CGATT?")); + if (waitResponse(GF(GSM_NL "+CGATT:")) != 1) + { + return false; + } + int res = stream.readStringUntil('\n').toInt(); + waitResponse(); + if (res != 1) + return false; + + return true; + } /* * IP Address functions @@ -587,7 +601,7 @@ protected: sendAT(GF("+QISTATE=1,"), mux); //+QISTATE: 0,"TCP","151.139.237.11",80,5087,4,1,0,0,"uart1" - if (waitResponse(GF("+QISTATE:"))) + if (waitResponse(GF("+QISTATE:")) != 1) return false; streamSkipUntil(','); // Skip mux