From 808e58307a089d187f484dff0befd3f20b8c9a08 Mon Sep 17 00:00:00 2001 From: SRGDamia1 Date: Mon, 8 May 2017 18:40:19 -0400 Subject: [PATCH] Increased timeout for IP address lookup on XBee --- TinyGsmClientXBee.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TinyGsmClientXBee.h b/TinyGsmClientXBee.h index ce7d0ee..86c0cac 100644 --- a/TinyGsmClientXBee.h +++ b/TinyGsmClientXBee.h @@ -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);