This commit is contained in:
Volodymyr Shymanskyy
2017-09-02 19:50:19 +03:00
parent e37b2a62e4
commit 9129d8fe8f

View File

@@ -524,7 +524,7 @@ public:
String getGsmLocation() { String getGsmLocation() {
sendAT(GF("+CIPGSMLOC=1,1")); sendAT(GF("+CIPGSMLOC=1,1"));
if (waitResponse(GF(GSM_NL "+CIPGSMLOC:")) != 1) { if (waitResponse(10000L, GF(GSM_NL "+CIPGSMLOC:")) != 1) {
return ""; return "";
} }
String res = stream.readStringUntil('\n'); String res = stream.readStringUntil('\n');