Added Network Time Fetching for SimXXX

This commit is contained in:
Lefteris
2018-04-25 10:05:00 +03:00
parent 0041755e81
commit 2dbfa16215
3 changed files with 47 additions and 0 deletions

View File

@@ -126,6 +126,12 @@ void loop() {
String gsmLoc = modem.getGsmLocation();
DBG("GSM location:", gsmLoc);
// This is only supported on SIMxxx series
String gsmTime = modem.getGSMDateTime(DATE_TIME);
DBG("GSM Time:", gsmTime);
String gsmDate = modem.getGSMDateTime(DATE_DATE);
DBG("GSM Date:", gsmDate);
String ussd_balance = modem.sendUSSD("*111#");
DBG("Balance (USSD):", ussd_balance);