feat: support configuration using menuconfig.
This commit is contained in:
65
main/Kconfig.projbuild
Normal file
65
main/Kconfig.projbuild
Normal file
@ -0,0 +1,65 @@
|
||||
menu "Display Ambientlight Configuration"
|
||||
config NUMBER_OF_LEDS
|
||||
int "Number of LEDs in the light strip"
|
||||
range 1 65535
|
||||
default 8
|
||||
help
|
||||
Number of LEDs in the light strip.
|
||||
Used to define buffer bytes length.
|
||||
endmenu
|
||||
|
||||
menu "Wi-Fi Configuration"
|
||||
|
||||
config WIFI_SSID
|
||||
string "WiFi SSID"
|
||||
default "Ivan"
|
||||
help
|
||||
SSID (network name) for the example to connect to.
|
||||
|
||||
config WIFI_PASSWORD
|
||||
string "WiFi Password"
|
||||
default "ivanli.cc"
|
||||
help
|
||||
WiFi password (WPA or WPA2) for the example to use.
|
||||
|
||||
config WIFI_MAXIMUM_RETRY
|
||||
int "Maximum retry"
|
||||
default 5
|
||||
help
|
||||
Set the Maximum retry to avoid station reconnecting to the AP unlimited when the AP is really inexistent.
|
||||
|
||||
choice WIFI_SCAN_AUTH_MODE_THRESHOLD
|
||||
prompt "WiFi Scan auth mode threshold"
|
||||
default ESP_WIFI_AUTH_OPEN
|
||||
help
|
||||
The weakest authmode to accept in the scan mode.
|
||||
|
||||
config WIFI_AUTH_OPEN
|
||||
bool "OPEN"
|
||||
config WIFI_AUTH_WEP
|
||||
bool "WEP"
|
||||
config WIFI_AUTH_WPA_PSK
|
||||
bool "WPA PSK"
|
||||
config WIFI_AUTH_WPA2_PSK
|
||||
bool "WPA2 PSK"
|
||||
config WIFI_AUTH_WPA_WPA2_PSK
|
||||
bool "WPA/WPA2 PSK"
|
||||
config WIFI_AUTH_WPA3_PSK
|
||||
bool "WPA3 PSK"
|
||||
config WIFI_AUTH_WPA2_WPA3_PSK
|
||||
bool "WPA2/WPA3 PSK"
|
||||
config WIFI_AUTH_WAPI_PSK
|
||||
bool "WAPI PSK"
|
||||
endchoice
|
||||
|
||||
endmenu
|
||||
|
||||
menu "MQTT Configuration"
|
||||
|
||||
config MQTT_BROKER_URL
|
||||
string "Broker URL"
|
||||
default "mqtt://mqtt.eclipseprojects.io"
|
||||
help
|
||||
URL of the broker to connect to
|
||||
|
||||
endmenu
|
Reference in New Issue
Block a user