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

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