Browse Source

Merge branch 'patch-1' into develop

v_master
Sara Damiano 5 years ago
parent
commit
f3cc2e0748
1 changed files with 22 additions and 1 deletions
  1. +22
    -1
      src/TinyGsmClientSIM800.h

+ 22
- 1
src/TinyGsmClientSIM800.h View File

@ -405,7 +405,28 @@ class TinyGsmSim800
protected:
// Can return a location from CIPGSMLOC as per the template
String getGsmLocation() {
sendAT(GF("+CIPGSMLOC=1,1"));
if (waitResponse(10000L, GF(GSM_NL "+CIPGSMLOC:")) != 1) {
return "";
}
String res = stream.readStringUntil('\n');
waitResponse();
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;
}
/*
* GPS location functions
*/


Loading…
Cancel
Save