Skip to content

Commit 6ab79f0

Browse files
committed
Fixed issue with Cosm sketch
1 parent 28df8dc commit 6ab79f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WiFi/examples/WifiCosmClient/WifiCosmClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void loop() {
8181
// if there's incoming data from the net connection.
8282
// send it out the serial port. This is for debugging
8383
// purposes only:
84-
if (client.available()) {
84+
while (client.available()) {
8585
char c = client.read();
8686
Serial.print(c);
8787
}

WiFi/examples/WifiCosmClientString/WifiCosmClientString.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void loop() {
9595
// if there's incoming data from the net connection.
9696
// send it out the serial port. This is for debugging
9797
// purposes only:
98-
if (client.available()) {
98+
while (client.available()) {
9999
char c = client.read();
100100
Serial.print(c);
101101
}

0 commit comments

Comments
 (0)