Skip to content

Commit e166e85

Browse files
committed
oupps ! I forgot to set the timout value
1 parent 6fa70bd commit e166e85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ void loop() {
7171
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
7272
"Host: " + host + "\r\n" +
7373
"Connection: close\r\n\r\n");
74+
int timeout = millis() + 5000;
7475
while (client.available() == 0) {
7576
if (timeout - millis() < 0) {
7677
Serial.println(">>> Client Timeout !");

0 commit comments

Comments
 (0)