Fix isGprsConnected() for SIM8xx

This commit is contained in:
Volodymyr Shymanskyy
2017-09-25 12:06:18 +03:00
parent 5d6a9afcf9
commit 3149c335fb

View File

@@ -524,7 +524,14 @@ public:
}
int res = stream.readStringUntil('\n').toInt();
waitResponse();
return res == 1;
if (res != 1)
return false;
sendAT(GF("+CIFSR;E0")); // Another option is to use AT+CGPADDR=1
if (waitResponse() != 1)
return false;
return true;
}
String getLocalIP() {