in order to see the WiFiClient example running correctly, I had to change:
// Read all the lines of the reply from server and print them to Serial
while(client.available()){
String line = client.readStringUntil('\r');
Serial.print(line);
}
into this:
// Read all the lines of the reply from server and print them to Serial
while(client.connected()){
String line = client.readStringUntil('\r');
Serial.print(line);
}
Could you please tell me if this is correct?
Thanks,
Marcello