in case of erroneous return of device location

the BTS location might help a little if getting errors via device reading
This commit is contained in:
Slavomir Hustaty
2019-09-05 12:26:34 +02:00
committed by GitHub
parent f0dd33ffe3
commit a357bb559b

View File

@@ -627,6 +627,17 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
return res; 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 * Time functions
*/ */