add WiFi SSID/password and NVS erase options to menuconfig
This commit is contained in:
30
main/Kconfig
30
main/Kconfig
@@ -20,4 +20,34 @@ menu "espScope Configuration"
|
||||
a file called "./boards/<your board name>.h" and set this to "./boards/your board name.h"
|
||||
Default is boards/default.h which is empty.
|
||||
|
||||
config WIFI_ERASE_NVS
|
||||
bool "Erase NVS WiFi config on boot"
|
||||
default n
|
||||
help
|
||||
Enable to erase stored WiFi credentials from NVS at every boot.
|
||||
Useful when you want to always use the credentials set in
|
||||
menuconfig instead of previously saved ones.
|
||||
|
||||
config WIFI_CONFIGURE
|
||||
bool "Configure WiFi credentials"
|
||||
default n
|
||||
help
|
||||
Enable to set WiFi SSID and Password in menuconfig.
|
||||
If disabled (default), device boots in SoftAP mode
|
||||
for over-the-air provisioning.
|
||||
|
||||
config WIFI_SSID
|
||||
string "WiFi SSID"
|
||||
depends on WIFI_CONFIGURE
|
||||
default ""
|
||||
help
|
||||
WiFi SSID for Station mode.
|
||||
|
||||
config WIFI_PASSWORD
|
||||
string "WiFi Password"
|
||||
depends on WIFI_CONFIGURE
|
||||
default ""
|
||||
help
|
||||
WiFi password for the configured SSID.
|
||||
|
||||
endmenu
|
||||
|
||||
Reference in New Issue
Block a user