1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +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

View File

@ -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);
}