Fix GSMLocationTime, XBee, A6
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -65,11 +65,11 @@ class TinyGsmA6 : public TinyGsmModem<TinyGsmA6>,
|
|||||||
public:
|
public:
|
||||||
GsmClientA6() {}
|
GsmClientA6() {}
|
||||||
|
|
||||||
explicit GsmClientA6(TinyGsmA6& modem) {
|
explicit GsmClientA6(TinyGsmA6& modem, uint8_t = 0) {
|
||||||
init(&modem, -1);
|
init(&modem, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool init(TinyGsmA6* modem, uint8_t) {
|
bool init(TinyGsmA6* modem, uint8_t = 0) {
|
||||||
this->at = modem;
|
this->at = modem;
|
||||||
this->mux = -1;
|
this->mux = -1;
|
||||||
sock_connected = false;
|
sock_connected = false;
|
||||||
|
@@ -97,7 +97,7 @@ class TinyGsmXBee : public TinyGsmModem<TinyGsmXBee>,
|
|||||||
init(&modem, mux);
|
init(&modem, mux);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool init(TinyGsmXBee* modem, uint8_t) {
|
bool init(TinyGsmXBee* modem, uint8_t = 0) {
|
||||||
this->at = modem;
|
this->at = modem;
|
||||||
this->mux = 0;
|
this->mux = 0;
|
||||||
sock_connected = false;
|
sock_connected = false;
|
||||||
|
@@ -36,8 +36,8 @@ class TinyGsmGSMLocation {
|
|||||||
|
|
||||||
bool getGsmLocationTime(int* year, int* month, int* day, int* hour,
|
bool getGsmLocationTime(int* year, int* month, int* day, int* hour,
|
||||||
int* minute, int* second) {
|
int* minute, int* second) {
|
||||||
float lat = 0;
|
float lat = 0;
|
||||||
float lon = 0;
|
float lon = 0;
|
||||||
float accuracy = 0;
|
float accuracy = 0;
|
||||||
return thisModem().getGsmLocation(&lat, &lon, &accuracy, year, month, day,
|
return thisModem().getGsmLocation(&lat, &lon, &accuracy, year, month, day,
|
||||||
hour, minute, second);
|
hour, minute, second);
|
||||||
|
@@ -91,6 +91,8 @@ void loop() {
|
|||||||
client.stop();
|
client.stop();
|
||||||
|
|
||||||
#if defined(TINY_GSM_MODEM_HAS_SSL)
|
#if defined(TINY_GSM_MODEM_HAS_SSL)
|
||||||
|
// modem.addCertificate(); // not yet impemented
|
||||||
|
// modem.deleteCertificate(); // not yet impemented
|
||||||
TinyGsmClientSecure client_secure(modem);
|
TinyGsmClientSecure client_secure(modem);
|
||||||
TinyGsmClientSecure client_secure2(modem);
|
TinyGsmClientSecure client_secure2(modem);
|
||||||
TinyGsmClientSecure client_secure3(modem, 1);
|
TinyGsmClientSecure client_secure3(modem, 1);
|
||||||
|
Reference in New Issue
Block a user