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 Sep 7, 2018
1 parent cc0bfa0 commit 4fdff07
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 4fdff07

Please sign in to comment.