Add gsm location to 70xx series.
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -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
|
### 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`.
|
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_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*.
|
The `TINY_GSM_MODEM_SIM7000SSL` version supports both SSL *and unsecured connections* with up to 2 simultaneous connections.
|
||||||
So why are there two versions?
|
So why are there two versions?
|
||||||
The "SSL" version uses the SIM7000's "application" commands while the other uses the "TCP-IP toolkit".
|
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.
|
Depending on your region/firmware, one or the other may not work for you.
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#include "TinyGsmSMS.tpp"
|
#include "TinyGsmSMS.tpp"
|
||||||
#include "TinyGsmTime.tpp"
|
#include "TinyGsmTime.tpp"
|
||||||
#include "TinyGsmNTP.tpp"
|
#include "TinyGsmNTP.tpp"
|
||||||
|
#include "TinyGsmGSMLocation.tpp"
|
||||||
|
|
||||||
#define GSM_NL "\r\n"
|
#define GSM_NL "\r\n"
|
||||||
static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL;
|
static const char GSM_OK[] TINY_GSM_PROGMEM = "OK" GSM_NL;
|
||||||
@@ -45,7 +46,8 @@ class TinyGsmSim70xx : public TinyGsmModem<TinyGsmSim70xx<modemType>>,
|
|||||||
public TinyGsmGPS<TinyGsmSim70xx<modemType>>,
|
public TinyGsmGPS<TinyGsmSim70xx<modemType>>,
|
||||||
public TinyGsmTime<TinyGsmSim70xx<modemType>>,
|
public TinyGsmTime<TinyGsmSim70xx<modemType>>,
|
||||||
public TinyGsmNTP<TinyGsmSim70xx<modemType>>,
|
public TinyGsmNTP<TinyGsmSim70xx<modemType>>,
|
||||||
public TinyGsmBattery<TinyGsmSim70xx<modemType>> {
|
public TinyGsmBattery<TinyGsmSim70xx<modemType>>,
|
||||||
|
public TinyGsmGSMLocation<TinyGsmSim70xx<modemType>> {
|
||||||
friend class TinyGsmModem<TinyGsmSim70xx<modemType>>;
|
friend class TinyGsmModem<TinyGsmSim70xx<modemType>>;
|
||||||
friend class TinyGsmGPRS<TinyGsmSim70xx<modemType>>;
|
friend class TinyGsmGPRS<TinyGsmSim70xx<modemType>>;
|
||||||
friend class TinyGsmSMS<TinyGsmSim70xx<modemType>>;
|
friend class TinyGsmSMS<TinyGsmSim70xx<modemType>>;
|
||||||
@@ -53,6 +55,7 @@ class TinyGsmSim70xx : public TinyGsmModem<TinyGsmSim70xx<modemType>>,
|
|||||||
friend class TinyGsmTime<TinyGsmSim70xx<modemType>>;
|
friend class TinyGsmTime<TinyGsmSim70xx<modemType>>;
|
||||||
friend class TinyGsmNTP<TinyGsmSim70xx<modemType>>;
|
friend class TinyGsmNTP<TinyGsmSim70xx<modemType>>;
|
||||||
friend class TinyGsmBattery<TinyGsmSim70xx<modemType>>;
|
friend class TinyGsmBattery<TinyGsmSim70xx<modemType>>;
|
||||||
|
friend class TinyGsmGSMLocation<TinyGsmSim70xx<modemType>>;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CRTP Helper
|
* CRTP Helper
|
||||||
|
Reference in New Issue
Block a user