1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

read all lines from slow servers (#5113)

Replaces #1829
This commit is contained in:
Develo 2018-09-07 15:07:59 -03:00 committed by GitHub
parent cc0bfa04d4
commit 4fdff072e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ void loop() {
} }
// Read all the lines of the reply from server and print them to Serial // 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'); String line = client.readStringUntil('\r');
Serial.print(line); Serial.print(line);
} }