Browse Source

in case of erroneous return of device location

the BTS location might help a little if getting errors via device reading
v_master
Slavomir Hustaty 5 years ago
committed by GitHub
parent
commit
a357bb559b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      src/TinyGsmClientSIM800.h

+ 12
- 1
src/TinyGsmClientSIM800.h View File

@ -626,7 +626,18 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
res.trim();
return res;
}
String getBaseStationGsmLocation() {
sendAT(GF("+CLBS=1,1"));
if (waitResponse(10000L, GF(GSM_NL "+CLBS:")) != 1) {
return "";
}
String res = stream.readStringUntil('\n');
waitResponse();
res.trim();
return res;
}
/*
* Time functions
*/


Loading…
Cancel
Save