Files
esp-idf/examples/wifi/softap_sta/main/Kconfig.projbuild

113 lines
4.3 KiB
Plaintext

menu "Example Configuration"
menu "SoftAP Configuration"
comment "SoftAP Configuration"
config ESP_WIFI_AP_SSID
string "WiFi AP SSID"
default "myssid"
help
SSID (network name) of the AP for the example to connect to.
config ESP_WIFI_AP_PASSWORD
string "WiFi AP Password"
default "mypassword"
help
WiFi password of the AP for the example to use.
config ESP_WIFI_AP_CHANNEL
int "WiFi AP Channel"
range 1 14
default 1
help
WiFi channel (network channel) of the AP for the example to use.
config ESP_MAX_STA_CONN_AP
int "Maximal STA connections"
default 4
range 1 4 if IDF_TARGET_ESP32C2
range 1 15
help
Maximum number of STAs allowed to connect to the soft-AP (wifi_config_t.ap.max_connection).
Upper bound matches ESP_WIFI_MAX_CONN_NUM in esp_wifi_types_native.h:
1-4 on ESP32-C2, 1-15 on other Wi-Fi chips.
Soft-AP and ESP-NOW share encryption keys; see Wi-Fi driver documentation
if ESP-NOW is enabled.
endmenu
menu "STA Configuration"
comment "STA Configuration"
config ESP_WIFI_REMOTE_AP_SSID
string "WiFi Remote AP SSID"
default "otherapssid"
help
SSID (network name) for the example's sta to connect to.
config ESP_WIFI_REMOTE_AP_PASSWORD
string "WiFi Remote AP Password"
default "otherappassword"
help
WiFi password for the example to use.
config ESP_MAXIMUM_STA_RETRY
int "Maximum retry"
default 5
help
Set the maximum retry value to prevent the station from continuously
attempting to reconnect to the Access Point (AP) when the AP doesn't exist.
choice ESP_WIFI_SCAN_AUTH_MODE_THRESHOLD
prompt "WiFi Scan auth mode threshold"
default ESP_WIFI_AUTH_WPA2_PSK
help
The weakest authmode to accept in the scan mode.
This value defaults to ESP_WIFI_AUTH_WPA2_PSK in case password is present
and ESP_WIFI_AUTH_OPEN is used. Please select ESP_WIFI_AUTH_WEP / ESP_WIFI_AUTH_WPA_PSK
in case AP is operating in WEP / WPA mode.
config ESP_WIFI_AUTH_OPEN
bool "OPEN"
config ESP_WIFI_AUTH_WEP
bool "WEP"
config ESP_WIFI_AUTH_WPA_PSK
bool "WPA PSK"
config ESP_WIFI_AUTH_WPA2_PSK
bool "WPA2 PSK"
config ESP_WIFI_AUTH_WPA_WPA2_PSK
bool "WPA/WPA2 PSK"
config ESP_WIFI_AUTH_WPA3_PSK
bool "WPA3 PSK"
config ESP_WIFI_AUTH_WPA2_WPA3_PSK
bool "WPA2/WPA3 PSK"
config ESP_WIFI_AUTH_WAPI_PSK
bool "WAPI PSK"
endchoice
endmenu
menu "DFS Channel Configuration"
depends on SOC_WIFI_SUPPORT_5G
comment "DFS Channel Configuration (5 GHz capable chips only)"
config ESP_WIFI_COUNTRY_CODE
string "Country code"
default "01"
help
Country code used to configure the regulatory domain (e.g. "US" for FCC, "DE" for CE,
"01" for world safe mode). The set of DFS channels depends on this regulatory domain.
config ESP_WIFI_DISABLE_DFS_CHANNELS
bool "Disable DFS channels"
default n
help
If enabled, the device (both STA and SoftAP) will not use any DFS channel of the
configured regulatory domain. As a result, STA cannot connect to an AP that operates
on a DFS channel. The non-DFS channels are derived by looking up the country in the
esp_wifi regulatory table, and the 5 GHz channel bitmask
(wifi_country_t.wifi_5g_channel_mask) is restricted to them with the country policy
switched to manual. This can be useful for certification setups (e.g. FCC, CE)
where DFS channels must be avoided.
endmenu
endmenu