Browse Source

Check for XBee IP in connection status

v_master
Sara Damiano 5 years ago
parent
commit
2992c0b973
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      src/TinyGsmClientXBee.h

+ 10
- 1
src/TinyGsmClientXBee.h View File

@ -663,7 +663,16 @@ public:
bool isNetworkConnected() {
RegStatus s = getRegistrationStatus();
return (s == REG_OK);
if (s == REG_OK) {
IPAddress ip = localIP();
if (ip != IPAddress(0, 0, 0, 0)) {
return true;
} else {
return false;
}
} else {
return false;
}
}
bool waitForNetwork(unsigned long timeout_ms = 60000L) {


Loading…
Cancel
Save