From 7a4899189fe429db684a5e3bafde7d5d8a928803 Mon Sep 17 00:00:00 2001 From: SRGDamia1 Date: Fri, 19 May 2017 16:40:29 -0400 Subject: [PATCH] Increased time again for XBee host lookup --- TinyGsmClientXBee.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TinyGsmClientXBee.h b/TinyGsmClientXBee.h index 86c0cac..d3fc4d4 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 < 10000) {}; + while (stream.available() < 8 && millis() - startMillis < 30000) {}; IPaddr = streamReadUntil('\r'); // read result IPAddress ip; ip.fromString(IPaddr);