Browse Source

Fix ussd test in all functions

v_master
Sara Damiano 5 years ago
parent
commit
bdcba4c0f2
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      examples/AllFunctions/AllFunctions.ino
  2. +1
    -1
      src/TinyGsmClientSIM5360.h

+ 3
- 1
examples/AllFunctions/AllFunctions.ino View File

@ -194,7 +194,9 @@ void loop() {
// DBG("GSM Time:", gsmTime);
// String gsmDate = modem.getGSMDateTime(DATE_DATE);
// DBG("GSM Date:", gsmDate);
#endif
#if TINY_GSM_TEST_USSD
String ussd_balance = modem.sendUSSD("*111#");
DBG("Balance (USSD):", ussd_balance);
@ -247,7 +249,7 @@ void loop() {
uint8_t chargeState = -99;
int8_t percent = -99;
uint16_t milliVolts = -9999;
modem.getBattStats(chargeState, percent, milliVolts)
modem.getBattStats(chargeState, percent, milliVolts);
DBG("Battery charge state:", chargeState);
DBG("Battery charge 'percent':", percent);
DBG("Battery voltage:", milliVolts / 1000.0F);


+ 1
- 1
src/TinyGsmClientSIM5360.h View File

@ -207,7 +207,7 @@ TINY_GSM_MODEM_GET_INFO_ATI()
if (waitResponse(10000L) != 1) {
return false;
}
delay(3000); //TODO: Test this delay
waitResponse(10000L, GF(GSM_NL "PB DONE"));
return init();
}


Loading…
Cancel
Save