- 新增 wifi-connect 组件(AP 配网、DNS 劫持、Captive Portal) - 支持长按按键进入配网,网页配置路由器 SSID/密码 - 增加清除已保存 Wi-Fi 参数能力(API + 页面按钮) - 增加中文状态日志与中文注释,优化配网交互 - 补充组件文档:README、USER_GUIDE、QUICK_POSTER、BLOG
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
menu "WiFi Connect"
|
|
|
|
config WIFI_CONNECT_BUTTON_GPIO
|
|
int "Provision button GPIO"
|
|
range 0 21
|
|
default 9
|
|
help
|
|
GPIO used for entering provisioning mode.
|
|
|
|
config WIFI_CONNECT_BUTTON_ACTIVE_LEVEL
|
|
int "Provision button active level"
|
|
range 0 1
|
|
default 0
|
|
help
|
|
Active level of provisioning button. 0 means active-low.
|
|
|
|
config WIFI_CONNECT_DEBOUNCE_MS
|
|
int "Button debounce time (ms)"
|
|
range 10 200
|
|
default 40
|
|
|
|
config WIFI_CONNECT_LONG_PRESS_MS
|
|
int "Button long press trigger time (ms)"
|
|
range 500 10000
|
|
default 2000
|
|
|
|
config WIFI_CONNECT_CONNECT_TIMEOUT_SEC
|
|
int "Wi-Fi connect timeout (sec)"
|
|
range 5 180
|
|
default 30
|
|
|
|
config WIFI_CONNECT_IDLE_TIMEOUT_SEC
|
|
int "Provisioning idle timeout (sec)"
|
|
range 30 1800
|
|
default 300
|
|
|
|
config WIFI_CONNECT_MAX_SCAN_RESULTS
|
|
int "Maximum scan results"
|
|
range 5 50
|
|
default 20
|
|
|
|
config WIFI_CONNECT_AP_MAX_CONNECTIONS
|
|
int "SoftAP max connections"
|
|
range 1 10
|
|
default 4
|
|
|
|
config WIFI_CONNECT_AP_GRACEFUL_STOP_SEC
|
|
int "AP keep-alive after STA connected (sec)"
|
|
range 0 120
|
|
default 15
|
|
|
|
endmenu
|