Added pin parameter on restart() (necessary for init() with pin)

This commit is contained in:
Adrian Cervera Andes
2021-01-29 15:02:35 +01:00
parent 31bb5cbeed
commit a51cfda25d
15 changed files with 30 additions and 30 deletions

View File

@@ -487,7 +487,7 @@ class TinyGsmXBee : public TinyGsmModem<TinyGsmXBee>,
}
}
bool restartImpl() {
bool restartImpl(const char* pin = NULL) {
if (!commandMode()) { return false; } // Return immediately
if (beeType == XBEE_UNKNOWN) getSeries(); // how we restart depends on this
@@ -525,7 +525,7 @@ class TinyGsmXBee : public TinyGsmModem<TinyGsmXBee>,
exitCommand();
return init();
return init(pin);
}
void setupPinSleep(bool maintainAssociation = false) {