Handle URC's related to automatic time updates
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -166,6 +166,10 @@ class TinyGsmSim5360 : public TinyGsmModem<TinyGsmSim5360>,
|
||||
|
||||
DBG(GF("### Modem:"), getModemName());
|
||||
|
||||
// Disable time and time zone URC's
|
||||
sendAT(GF("+CTZR=0"));
|
||||
if (waitResponse(10000L) != 1) { return false; }
|
||||
|
||||
// Enable automatic time zome update
|
||||
sendAT(GF("+CTZU=1"));
|
||||
if (waitResponse(10000L) != 1) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user