Browse Source

Fix isGprsConnected() for SIM8xx

v_master
Volodymyr Shymanskyy 7 years ago
parent
commit
3149c335fb
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      TinyGsmClientSIM800.h

+ 8
- 1
TinyGsmClientSIM800.h 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() {


Loading…
Cancel
Save