Fix isGprsConnected() for SIM8xx
This commit is contained in:
@@ -524,7 +524,14 @@ public:
|
|||||||
}
|
}
|
||||||
int res = stream.readStringUntil('\n').toInt();
|
int res = stream.readStringUntil('\n').toInt();
|
||||||
waitResponse();
|
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() {
|
String getLocalIP() {
|
||||||
|
|||||||
Reference in New Issue
Block a user