239 xEventGroupSetBits(xEventGroupWifi, TASK_WIFI_REQUEST_STA_CONNECT); |
239 xEventGroupSetBits(xEventGroupWifi, TASK_WIFI_REQUEST_STA_CONNECT); |
240 } |
240 } |
241 break; |
241 break; |
242 } |
242 } |
243 #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0) |
243 #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0) |
244 /* Not sure about when this was added. */ |
244 /* Not sure about when this was added, do nothing and ignore. */ |
245 case WIFI_EVENT_STA_NEIGHBOR_REP: |
245 /** Argument structure for WIFI_EVENT_HOME_CHANNEL_CHANGE event */ |
246 ESP_LOGI(TAG, "WIFI_EVENT_STA_NEIGHBOR_REP"); |
246 //typedef struct { |
|
247 // uint8_t old_chan; /**< old home channel of the device */ |
|
248 // wifi_second_chan_t old_snd; /**< old second channel of the device */ |
|
249 // uint8_t new_chan; /**< new home channel of the device */ |
|
250 // wifi_second_chan_t new_snd; /**< new second channel of the device */ |
|
251 //} wifi_event_home_channel_change_t; |
|
252 |
|
253 case WIFI_EVENT_HOME_CHANNEL_CHANGE: |
|
254 // ESP_LOGI(TAG, "WIFI_EVENT_HOME_CHANNEL_CHANGE"); |
247 break; |
255 break; |
248 #endif |
256 #endif |
249 default: |
257 default: |
250 ESP_LOGW(TAG, "Unknown WiFi event %d", (int)event_id); |
258 ESP_LOGW(TAG, "Unknown WiFi event %d", (int)event_id); |
251 break; |
259 break; |