Handle URC's related to automatic time updates

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2020-02-18 15:54:13 -05:00
parent 669b88c9be
commit 6e7ea5aced
10 changed files with 80 additions and 25 deletions

View File

@@ -539,6 +539,10 @@ class TinyGsmMC60 : public TinyGsmModem<TinyGsmMC60>,
}
data = "";
DBG("### Closed: ", mux);
} else if (data.endsWith(GF("+QNITZ:" GSM_NL))) {
streamSkipUntil('\n'); // URC for time sync
DBG("### Network time has been updated.");
data = "";
}
}
} while (millis() - startMillis < timeout_ms);