From c3508aa00088e6361f9e656c1881371009fcb20e Mon Sep 17 00:00:00 2001 From: Vince <49579475+VinceKezel@users.noreply.github.com> Date: Wed, 15 Jan 2020 22:42:53 -0500 Subject: [PATCH] Update TinyGsmClientSIM800.h Question mark not a valid mode for this at command AT+CBC --- src/TinyGsmClientSIM800.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TinyGsmClientSIM800.h b/src/TinyGsmClientSIM800.h index c505eca..be225d5 100644 --- a/src/TinyGsmClientSIM800.h +++ b/src/TinyGsmClientSIM800.h @@ -698,7 +698,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK() } uint8_t getBattChargeState() { - sendAT(GF("+CBC?")); + sendAT(GF("+CBC")); if (waitResponse(GF(GSM_NL "+CBC:")) != 1) { return false; } @@ -710,7 +710,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK() } bool getBattStats(uint8_t &chargeState, int8_t &percent, uint16_t &milliVolts) { - sendAT(GF("+CBC?")); + sendAT(GF("+CBC")); if (waitResponse(GF(GSM_NL "+CBC:")) != 1) { return false; }