Browse Source

Fix SARA R4 temp

v_master
Sara Damiano 5 years ago
parent
commit
712d85e7f3
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/TinyGsmClientSaraR4.h

+ 1
- 2
src/TinyGsmClientSaraR4.h View File

@ -524,7 +524,6 @@ TINY_GSM_MODEM_GET_GPRS_IP_CONNECTED()
if (waitResponse(GF(GSM_NL "+UTEMP:")) != 1) { if (waitResponse(GF(GSM_NL "+UTEMP:")) != 1) {
return (float)-9999; return (float)-9999;
} }
streamSkipUntil(','); // Skip units (C/F)
int16_t res = stream.readStringUntil('\n').toInt(); int16_t res = stream.readStringUntil('\n').toInt();
float temp = -9999; float temp = -9999;
if (res != -1) { if (res != -1) {
@ -545,7 +544,7 @@ protected:
// create a socket // create a socket
sendAT(GF("+USOCR=6")); sendAT(GF("+USOCR=6"));
// reply is +USOCR: ## of socket created // reply is +USOCR: ## of socket created
if (waitResponse(GF(GSM_NL "+USOCR:")) != 1) {
if (waitResponse(GF(GSM_NL "+USOCR:")) != 1) {
return false; return false;
} }
*mux = stream.readStringUntil('\n').toInt(); *mux = stream.readStringUntil('\n').toInt();


Loading…
Cancel
Save