Tried compiling the ESP firmware for myself with a few different build targets and kept getting these errors. Tested on both the latest commit on the master branch and the latest release source .zip file. Curious if you might be using a different library version or if it was some sort of error on my end.
/.../flytrap-main/esp32/flytrap-fw/flytrap-fw.ino: In function 'void onStaIp(arduino_event_id_t, arduino_event_info_t)':
/.../flytrap-main/esp32/flytrap-fw/flytrap-fw.ino:142:5: error: 'esp_netif_sta_list_t' was not declared in this scope; did you mean 'esp_netif_flags_t'?
142 | esp_netif_sta_list_t netif_list;
| ^~~~~~~~~~~~~~~~~~~~
| esp_netif_flags_t
/.../flytrap-main/esp32/flytrap-fw/flytrap-fw.ino:144:44: error: 'netif_list' was not declared in this scope
144 | esp_netif_get_sta_list(&wifi_list, &netif_list) == ESP_OK) {
| ^~~~~~~~~~
/.../flytrap-main/esp32/flytrap-fw/flytrap-fw.ino:144:8: error: 'esp_netif_get_sta_list' was not declared in this scope; did you mean 'esp_wifi_ap_get_sta_list'?
144 | esp_netif_get_sta_list(&wifi_list, &netif_list) == ESP_OK) {
| ^~~~~~~~~~~~~~~~~~~~~~
| esp_wifi_ap_get_sta_list
Using library WiFi at version 3.3.11 in folder: /.../Arduino15/packages/esp32/hardware/esp32/3.3.11/libraries/WiFi
Using library Networking at version 3.3.11 in folder: /.../Arduino15/packages/esp32/hardware/esp32/3.3.11/libraries/Network
Using library Async TCP at version 3.5.0 in folder: /.../Arduino/libraries/Async_TCP
Using library ESP Async WebServer at version 3.12.0 in folder: /.../Arduino/libraries/ESP_Async_WebServer
Using library FS at version 3.3.11 in folder: /.../Arduino15/packages/esp32/hardware/esp32/3.3.11/libraries/FS
Using library DNSServer at version 3.3.11 in folder: /.../Arduino15/packages/esp32/hardware/esp32/3.3.11/libraries/DNSServer
Using library ESP32 Async UDP at version 3.3.11 in folder: /.../Arduino15/packages/esp32/hardware/esp32/3.3.11/libraries/AsyncUDP
Using library Hash at version 3.3.11 in folder: /.../Arduino15/packages/esp32/hardware/esp32/3.3.11/libraries/Hash
exit status 1
Compilation error: 'esp_netif_sta_list_t' was not declared in this scope; did you mean 'esp_netif_flags_t'?
Tried compiling the ESP firmware for myself with a few different build targets and kept getting these errors. Tested on both the latest commit on the master branch and the latest release source .zip file. Curious if you might be using a different library version or if it was some sort of error on my end.