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:
|
||||
GsmClientA6() {}
|
||||
|
||||
explicit GsmClientA6(TinyGsmA6& modem) {
|
||||
explicit GsmClientA6(TinyGsmA6& modem, uint8_t = 0) {
|
||||
init(&modem, -1);
|
||||
}
|
||||
|
||||
bool init(TinyGsmA6* modem, uint8_t) {
|
||||
bool init(TinyGsmA6* modem, uint8_t = 0) {
|
||||
this->at = modem;
|
||||
this->mux = -1;
|
||||
sock_connected = false;
|
||||
|
@@ -97,7 +97,7 @@ class TinyGsmXBee : public TinyGsmModem<TinyGsmXBee>,
|
||||
init(&modem, mux);
|
||||
}
|
||||
|
||||
bool init(TinyGsmXBee* modem, uint8_t) {
|
||||
bool init(TinyGsmXBee* modem, uint8_t = 0) {
|
||||
this->at = modem;
|
||||
this->mux = 0;
|
||||
sock_connected = false;
|
||||
|
@@ -36,8 +36,8 @@ class TinyGsmGSMLocation {
|
||||
|
||||
bool getGsmLocationTime(int* year, int* month, int* day, int* hour,
|
||||
int* minute, int* second) {
|
||||
float lat = 0;
|
||||
float lon = 0;
|
||||
float lat = 0;
|
||||
float lon = 0;
|
||||
float accuracy = 0;
|
||||
return thisModem().getGsmLocation(&lat, &lon, &accuracy, year, month, day,
|
||||
hour, minute, second);
|
||||
|
@@ -91,6 +91,8 @@ void loop() {
|
||||
client.stop();
|
||||
|
||||
#if defined(TINY_GSM_MODEM_HAS_SSL)
|
||||
// modem.addCertificate(); // not yet impemented
|
||||
// modem.deleteCertificate(); // not yet impemented
|
||||
TinyGsmClientSecure client_secure(modem);
|
||||
TinyGsmClientSecure client_secure2(modem);
|
||||
TinyGsmClientSecure client_secure3(modem, 1);
|
||||
|
Reference in New Issue
Block a user