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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
12 additions and
1 deletions
-
src/TinyGsmClientSIM800.h
|
@ -626,7 +626,18 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK() |
|
|
res.trim(); |
|
|
res.trim(); |
|
|
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 |
|
|
*/ |
|
|
*/ |
|
|