File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ void setup() {
79
79
// attempt to connect to Wifi network:
80
80
Serial.print (" Connecting Wifi: " );
81
81
Serial.println (ssid);
82
- while (WiFi.begin (ssid, password) != WL_CONNECTED) {
82
+ WiFi.begin (ssid, password);
83
+ while (WiFi.status () != WL_CONNECTED) {
83
84
Serial.print (" ." );
84
85
delay (500 );
85
86
}
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ void setup() {
40
40
// Attempt to connect to Wifi network:
41
41
Serial.print (" Connecting Wifi: " );
42
42
Serial.println (ssid);
43
- while (WiFi.begin (ssid, password) != WL_CONNECTED) {
43
+ WiFi.begin (ssid, password);
44
+ while (WiFi.status () != WL_CONNECTED) {
44
45
Serial.print (" ." );
45
46
delay (500 );
46
47
}
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ void setup() {
76
76
// attempt to connect to Wifi network:
77
77
Serial.print (" Connecting Wifi: " );
78
78
Serial.println (ssid);
79
- while (WiFi.begin (ssid, password) != WL_CONNECTED) {
79
+ WiFi.begin (ssid, password);
80
+ while (WiFi.status () != WL_CONNECTED) {
80
81
Serial.print (" ." );
81
82
delay (500 );
82
83
}
You can’t perform that action at this time.
0 commit comments