Configurable wifi sta config size

This commit is contained in:
CommanderRedYT
2023-12-17 16:30:35 +01:00
parent 7d10eed616
commit f65b8ad505
2 changed files with 6 additions and 1 deletions

View File

@@ -44,4 +44,9 @@ config WIFI_LOG_WORKAROUND
bool "Enable disabled-log bug workaround (by enabling certain log statements)"
default false
config WIFI_STA_CONFIG_COUNT
int "Maximum number of STA configurations"
default 5
range 1 10
endmenu

View File

@@ -163,7 +163,7 @@ struct dual_ant_config
struct sta_config
{
std::string hostname;
std::array<wifi_entry, 10> wifis;
std::array<wifi_entry, CONFIG_WIFI_STA_CONFIG_COUNT> wifis;
int8_t min_rssi = -90;
bool long_range = false;
wifi_bandwidth_t bandwidth = WIFI_BW_HT20;