Added power off to common

And implemented for ublox
This commit is contained in:
Sara Damiano
2018-09-24 10:05:51 -04:00
parent 746b68d9f5
commit dfa731388a
7 changed files with 18 additions and 7 deletions

View File

@@ -308,8 +308,9 @@ public:
}
bool poweroff() {
sendAT(GF("+QPOWD"));
return waitResponse(GF("POWERED DOWN")) == 1; // TODO
sendAT(GF("+QPOWD=1"));
waitResponse(300); // returns OK first
return waitResponse(300, GF("POWERED DOWN")) == 1;
}
bool radioOff() {