Skip to content

Commit

Permalink
read all lines from slow servers (esp8266#5113)
Browse files Browse the repository at this point in the history
Replaces esp8266#1829
  • Loading branch information
devyte authored and d-a-v committed Sep 9, 2018
1 parent 84c92b5 commit e93e9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void loop() {
}

// Read all the lines of the reply from server and print them to Serial
while (client.available()) {
while (client.available() || client.connected()) {
String line = client.readStringUntil('\r');
Serial.print(line);
}
Expand Down

0 comments on commit e93e9f6

Please sign in to comment.