File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,6 @@ void setup() {
57
57
Serial.println ();
58
58
59
59
WiFi.disconnect ();
60
- // while (WiFi.status() == WL_CONNECTED) {
61
- // delay(5);
62
- // }
63
60
64
61
// IPAddress ip(192, 168, 1, 177);
65
62
// IPAddress gw(192, 168, 1, 1);
@@ -95,9 +92,6 @@ void setup() {
95
92
}
96
93
97
94
WiFi.disconnect ();
98
- // while (WiFi.status() == WL_CONNECTED) {
99
- // delay(5);
100
- // }
101
95
102
96
Serial.println (" Attempting to connect without resetting static IP configuration" ); // <-------
103
97
testWiFi ();
@@ -106,9 +100,6 @@ void setup() {
106
100
Serial.println ();
107
101
}
108
102
WiFi.disconnect ();
109
- // while (WiFi.status() == WL_CONNECTED) {
110
- // delay(5);
111
- // }
112
103
113
104
Serial.print (" Attempting to connect to SSID \" " );
114
105
Serial.print (ssid);
@@ -146,9 +137,6 @@ void setup() {
146
137
Serial.println ();
147
138
148
139
WiFi.disconnect ();
149
- // while (WiFi.status() == WL_CONNECTED) {
150
- // delay(5);
151
- // }
152
140
153
141
Serial.print (" Attempting to connect to SSID \" " );
154
142
Serial.print (ssid);
@@ -173,7 +161,7 @@ void loop() {
173
161
174
162
void testWiFi () {
175
163
WiFi.begin (ssid, pass);
176
- while (WiFi.status () == WL_DISCONNECTED) {
164
+ while (WiFi.status () == WL_DISCONNECTED || WiFi. status () == WL_IDLE_STATUS ) {
177
165
Serial.print (' .' );
178
166
delay (1000 );
179
167
}
You can’t perform that action at this time.
0 commit comments