From 07b402721d23e2b392251ad95cc157505bbeeb8d Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Fri, 14 May 2021 11:44:21 -0400 Subject: [PATCH] Add gsm location to 70xx series. Signed-off-by: Sara Damiano --- README.md | 4 ++-- src/TinyGsmClientSIM70xx.h | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c1d31c9..f2e5bce 100644 --- a/README.md +++ b/README.md @@ -382,8 +382,8 @@ If you need SSL and it does not appear to be working on your SIM800, try a diffe ### Which versions of the SIM7000 code to use There are two versions of the SIM7000 code, one using `TINY_GSM_MODEM_SIM7000` and another with `TINY_GSM_MODEM_SIM7000SSL`. -The `TINY_GSM_MODEM_SIM7000` version *does not support SSL*. -The `TINY_GSM_MODEM_SIM7000SSL` version supports both SSL *and unsecured connections*. +The `TINY_GSM_MODEM_SIM7000` version *does not support SSL* but supports up to 8 simultaneous connections. +The `TINY_GSM_MODEM_SIM7000SSL` version supports both SSL *and unsecured connections* with up to 2 simultaneous connections. So why are there two versions? The "SSL" version uses the SIM7000's "application" commands while the other uses the "TCP-IP toolkit". Depending on your region/firmware, one or the other may not work for you. diff --git a/src/TinyGsmClientSIM70xx.h b/src/TinyGsmClientSIM70xx.h index 1f0792e..45d1f5e 100644 --- a/src/TinyGsmClientSIM70xx.h +++ b/src/TinyGsmClientSIM70xx.h @@ -19,6 +19,7 @@ #include "TinyGsmSMS.tpp" #include "TinyGsmTime.tpp" #include "TinyGsmNTP.tpp" +#include "TinyGsmGSMLocation.tpp" #define GSM_NL "\r\n" static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL; @@ -45,7 +46,8 @@ class TinyGsmSim70xx : public TinyGsmModem>, public TinyGsmGPS>, public TinyGsmTime>, public TinyGsmNTP>, - public TinyGsmBattery> { + public TinyGsmBattery>, + public TinyGsmGSMLocation> { friend class TinyGsmModem>; friend class TinyGsmGPRS>; friend class TinyGsmSMS>; @@ -53,6 +55,7 @@ class TinyGsmSim70xx : public TinyGsmModem>, friend class TinyGsmTime>; friend class TinyGsmNTP>; friend class TinyGsmBattery>; + friend class TinyGsmGSMLocation>; /* * CRTP Helper