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

@@ -283,7 +283,7 @@ class TinyGsmSequansMonarch
* Power functions
*/
protected:
bool restartImpl() {
bool restartImpl(const char* pin = NULL) {
if (!testAT()) { return false; }
sendAT(GF("+CFUN=0"));
@@ -295,7 +295,7 @@ class TinyGsmSequansMonarch
res = waitResponse(20000L, GF("+SYSSTART"), GFP(GSM_ERROR));
if (res != 1 && res != 3) { return false; }
delay(1000);
return init();
return init(pin);
}
bool powerOffImpl() {