File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 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)
10491049 log_e (" esp_wifi_set_ps failed" );
10501050 }
10511051 } else if (event->event_id == ARDUINO_EVENT_WIFI_STA_STOP) {
1052- WiFiSTAClass::_setStatus (WL_NO_SHIELD );
1052+ WiFiSTAClass::_setStatus (WL_STOPPED );
10531053 clearStatusBits (STA_STARTED_BIT | STA_CONNECTED_BIT | STA_HAS_IP_BIT | STA_HAS_IP6_BIT);
10541054 } else if (event->event_id == ARDUINO_EVENT_WIFI_STA_CONNECTED) {
10551055 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;
123123wifi_scan_method_t WiFiSTAClass::_scanMethod = WIFI_FAST_SCAN;
124124wifi_sort_method_t WiFiSTAClass::_sortMethod = WIFI_CONNECT_AP_BY_SIGNAL;
125125
126- static wl_status_t _sta_status = WL_NO_SHIELD ;
126+ static wl_status_t _sta_status = WL_STOPPED ;
127127static EventGroupHandle_t _sta_status_group = NULL ;
128128
129129void WiFiSTAClass::_setStatus (wl_status_t status)
Original file line number Diff line number Diff line change 4141
4242typedef enum {
4343 WL_NO_SHIELD = 255 , // for compatibility with WiFi Shield library
44+ WL_STOPPED = 254 ,
4445 WL_IDLE_STATUS = 0 ,
4546 WL_NO_SSID_AVAIL = 1 ,
4647 WL_SCAN_COMPLETED = 2 ,
You can’t perform that action at this time.
0 commit comments