Skip to content

Commit 88bdf17

Browse files
committed
Fixing example as per suggestion in issue #2
1 parent 4f48c6e commit 88bdf17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ESP8266/ChannelStatistics/ChannelStatistics.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ void setup() {
4141
// Attempt to connect to Wifi network:
4242
Serial.print("Connecting Wifi: ");
4343
Serial.println(ssid);
44-
while (WiFi.begin(ssid, password) != WL_CONNECTED) {
44+
WiFi.begin(ssid, password);
45+
while (WiFi.status() != WL_CONNECTED) {
4546
Serial.print(".");
4647
delay(500);
4748
}

0 commit comments

Comments
 (0)