Tweaks to SIM7000

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2020-02-12 18:57:51 -05:00
parent 899c1d8233
commit fe323288c4
2 changed files with 18 additions and 5 deletions

View File

@@ -170,7 +170,12 @@ class TinyGsmSim800
// Enable Local Time Stamp for getting network time
sendAT(GF("+CLTS=1"));
if (waitResponse(10000L) != 1) { return false; }
if (waitResponse(10000L) != 1) { return false;
}
// Enable battery checks
sendAT(GF("+CBATCHK=1"));
waitResponse();
int ret = getSimStatus();
// if the sim isn't ready and a pin has been provided, try to unlock the sim