Browse Source

Increased timeout for IP address lookup on XBee

v_master
SRGDamia1 7 years ago
parent
commit
808e58307a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      TinyGsmClientXBee.h

+ 1
- 1
TinyGsmClientXBee.h View File

@ -477,7 +477,7 @@ private:
String IPaddr; IPaddr.reserve(16);
// wait for the response
unsigned long startMillis = millis();
while (!stream.available() && millis() - startMillis < 1000) {};
while (!stream.available() && millis() - startMillis < 10000) {};
IPaddr = streamReadUntil('\r'); // read result
IPAddress ip;
ip.fromString(IPaddr);


Loading…
Cancel
Save