Browse Source

Fix GSMLocationTime, XBee, A6

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
v_master
Sara Damiano 5 years ago
parent
commit
8636624a3a
4 changed files with 7 additions and 5 deletions
  1. +2
    -2
      src/TinyGsmClientA6.h
  2. +1
    -1
      src/TinyGsmClientXBee.h
  3. +2
    -2
      src/TinyGsmGSMLocation.tpp
  4. +2
    -0
      tools/test_build/test_build.ino

+ 2
- 2
src/TinyGsmClientA6.h View File

@ -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;


+ 1
- 1
src/TinyGsmClientXBee.h View File

@ -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;


+ 2
- 2
src/TinyGsmGSMLocation.tpp View File

@ -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);


+ 2
- 0
tools/test_build/test_build.ino View File

@ -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);


Loading…
Cancel
Save