Skip to content

Commit 4fdff07

Browse files
authored
read all lines from slow servers (#5113)
Replaces #1829
1 parent cc0bfa0 commit 4fdff07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void loop() {
8585
}
8686

8787
// Read all the lines of the reply from server and print them to Serial
88-
while (client.available()) {
88+
while (client.available() || client.connected()) {
8989
String line = client.readStringUntil('\r');
9090
Serial.print(line);
9191
}

0 commit comments

Comments
 (0)