Files
iot-bedroom-environment-con…/components/wifi-connect/Kconfig.projbuild
Wang Beihong 8c33fe7411 Add Zone.Identifier files for wifi-connect and partitions
- Created new Zone.Identifier file in components/wifi-connect with ZoneId=3.
- Created new Zone.Identifier file in partitions.csv with ZoneId=3.
2026-03-28 16:12:37 +08:00

88 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
menu "WiFi 连接"
choice WIFI_CONNECT_PROVISION_MODE
prompt "配网模式"
default WIFI_CONNECT_PROVISION_MODE_AUTO
help
选择进入配网模式的方式。
config WIFI_CONNECT_PROVISION_MODE_BUTTON
bool "按键触发"
help
仅在检测到长按按键时进入配网模式。
config WIFI_CONNECT_PROVISION_MODE_AUTO
bool "开机自动配网,连接后关闭"
help
开机自动启动配网服务。
站点连接成功后等待指定时间后自动关闭配网热点和DNS服务。
endchoice
config WIFI_CONNECT_BUTTON_GPIO
int "配网按键GPIO"
range 0 21
default 9
help
用于进入配网模式的GPIO引脚。
config WIFI_CONNECT_BUTTON_ACTIVE_LEVEL
int "配网按键有效电平"
range 0 1
default 0
help
配网按键的有效电平。0表示低电平有效。
config WIFI_CONNECT_DEBOUNCE_MS
int "按键消抖时间 (毫秒)"
range 10 200
default 40
config WIFI_CONNECT_LONG_PRESS_MS
int "按键长按触发时间 (毫秒)"
range 500 10000
default 2000
config WIFI_CONNECT_BUTTON_STARTUP_GUARD_MS
int "按键启动保护时间 (毫秒)"
range 0 30000
default 5000
help
在启动保护窗口期内忽略按键长按检测。
当按键引脚与其他外设共享时使用。
config WIFI_CONNECT_BUTTON_RELEASE_ARM_MS
int "按键释放预载时间 (毫秒)"
range 20 2000
default 200
help
要求按键保持在释放电平的时间,
达到此时间后方可启用长按检测。
config WIFI_CONNECT_CONNECT_TIMEOUT_SEC
int "Wi-Fi 连接超时 (秒)"
range 5 180
default 30
config WIFI_CONNECT_IDLE_TIMEOUT_SEC
int "配网空闲超时 (秒)"
range 30 1800
default 300
config WIFI_CONNECT_MAX_SCAN_RESULTS
int "最大扫描结果数"
range 5 50
default 20
config WIFI_CONNECT_AP_MAX_CONNECTIONS
int "软AP最大连接数"
range 1 10
default 4
config WIFI_CONNECT_AP_GRACEFUL_STOP_SEC
int "站点连接后AP保持时间 (秒)"
range 0 120
default 15
endmenu