File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1049,7 +1049,7 @@ esp_err_t WiFiGenericClass::_eventCallback(arduino_event_t *event)
1049
1049
log_e (" esp_wifi_set_ps failed" );
1050
1050
}
1051
1051
} else if (event->event_id == ARDUINO_EVENT_WIFI_STA_STOP) {
1052
- WiFiSTAClass::_setStatus (WL_NO_SHIELD );
1052
+ WiFiSTAClass::_setStatus (WL_STOPPED );
1053
1053
clearStatusBits (STA_STARTED_BIT | STA_CONNECTED_BIT | STA_HAS_IP_BIT | STA_HAS_IP6_BIT);
1054
1054
} else if (event->event_id == ARDUINO_EVENT_WIFI_STA_CONNECTED) {
1055
1055
WiFiSTAClass::_setStatus (WL_IDLE_STATUS);
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ wifi_auth_mode_t WiFiSTAClass::_minSecurity = WIFI_AUTH_WPA2_PSK;
123
123
wifi_scan_method_t WiFiSTAClass::_scanMethod = WIFI_FAST_SCAN;
124
124
wifi_sort_method_t WiFiSTAClass::_sortMethod = WIFI_CONNECT_AP_BY_SIGNAL;
125
125
126
- static wl_status_t _sta_status = WL_NO_SHIELD ;
126
+ static wl_status_t _sta_status = WL_STOPPED ;
127
127
static EventGroupHandle_t _sta_status_group = NULL ;
128
128
129
129
void WiFiSTAClass::_setStatus (wl_status_t status)
Original file line number Diff line number Diff line change 41
41
42
42
typedef enum {
43
43
WL_NO_SHIELD = 255 , // for compatibility with WiFi Shield library
44
+ WL_STOPPED = 254 ,
44
45
WL_IDLE_STATUS = 0 ,
45
46
WL_NO_SSID_AVAIL = 1 ,
46
47
WL_SCAN_COMPLETED = 2 ,
You can’t perform that action at this time.
0 commit comments