Fix isGprsConnected() for SIM8xx
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user