2020-01-03 10:36:10 -05:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
|
|
|
choice EXAMPLE_PROV_TRANSPORT
|
|
|
|
bool "Provisioning Transport"
|
2020-12-28 06:08:37 -05:00
|
|
|
default EXAMPLE_PROV_TRANSPORT_SOFTAP if IDF_TARGET_ESP32S2
|
2020-01-03 10:36:10 -05:00
|
|
|
default EXAMPLE_PROV_TRANSPORT_BLE
|
|
|
|
help
|
|
|
|
Wi-Fi provisioning component offers both, SoftAP and BLE transports. Choose any one.
|
|
|
|
|
|
|
|
config EXAMPLE_PROV_TRANSPORT_BLE
|
|
|
|
bool "BLE"
|
|
|
|
select BT_ENABLED
|
2021-01-14 05:13:46 -05:00
|
|
|
depends on !IDF_TARGET_ESP32S2
|
2020-01-03 10:36:10 -05:00
|
|
|
config EXAMPLE_PROV_TRANSPORT_SOFTAP
|
|
|
|
bool "Soft AP"
|
|
|
|
endchoice
|
|
|
|
|
2022-06-01 01:57:20 -04:00
|
|
|
choice EXAMPLE_PROV_SECURITY_VERSION
|
|
|
|
bool "Protocomm security version"
|
2022-09-21 23:13:09 -04:00
|
|
|
default EXAMPLE_PROV_SECURITY_VERSION_2
|
2022-06-01 01:57:20 -04:00
|
|
|
help
|
|
|
|
Wi-Fi provisioning component offers 3 security versions.
|
|
|
|
The example offers a choice between security version 1 and 2.
|
|
|
|
|
|
|
|
config EXAMPLE_PROV_SECURITY_VERSION_1
|
|
|
|
bool "Security version 1"
|
2022-06-15 14:18:01 -04:00
|
|
|
select ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_1
|
2022-06-01 01:57:20 -04:00
|
|
|
|
|
|
|
config EXAMPLE_PROV_SECURITY_VERSION_2
|
|
|
|
bool "Security version 2"
|
2022-06-15 14:18:01 -04:00
|
|
|
select ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_2
|
2022-06-01 01:57:20 -04:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice EXAMPLE_PROV_MODE
|
|
|
|
bool "Security version 2 mode"
|
|
|
|
depends on EXAMPLE_PROV_SECURITY_VERSION_2
|
|
|
|
default EXAMPLE_PROV_SEC2_DEV_MODE
|
|
|
|
|
|
|
|
config EXAMPLE_PROV_SEC2_DEV_MODE
|
|
|
|
bool "Security version 2 development mode"
|
|
|
|
depends on EXAMPLE_PROV_SECURITY_VERSION_2
|
|
|
|
help
|
|
|
|
This enables the development mode for
|
|
|
|
security version 2.
|
|
|
|
Please note that this mode is NOT recommended for production purpose.
|
|
|
|
|
|
|
|
config EXAMPLE_PROV_SEC2_PROD_MODE
|
|
|
|
bool "Security version 2 production mode"
|
|
|
|
depends on EXAMPLE_PROV_SECURITY_VERSION_2
|
|
|
|
help
|
|
|
|
This enables the production mode for
|
|
|
|
security version 2.
|
|
|
|
endchoice
|
|
|
|
|
2020-01-03 10:36:10 -05:00
|
|
|
config EXAMPLE_PROV_TRANSPORT
|
|
|
|
int
|
|
|
|
default 1 if EXAMPLE_PROV_TRANSPORT_BLE
|
|
|
|
default 2 if EXAMPLE_PROV_TRANSPORT_SOFTAP
|
|
|
|
|
2021-02-18 01:59:08 -05:00
|
|
|
config EXAMPLE_RESET_PROVISIONED
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
prompt "Reset provisioned status of the device"
|
|
|
|
help
|
|
|
|
This erases the NVS to reset provisioned status of the device on every reboot.
|
|
|
|
Provisioned status is determined by the Wi-Fi STA configuration, saved on the NVS.
|
2021-02-18 05:45:21 -05:00
|
|
|
|
2021-05-28 07:43:25 -04:00
|
|
|
config EXAMPLE_RESET_PROV_MGR_ON_FAILURE
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
prompt "Reset provisioned credentials and state machine after session failure"
|
|
|
|
help
|
|
|
|
Enable reseting provisioned credentials and state machine after session failure.
|
|
|
|
This will restart the provisioning service after retries are exhausted.
|
|
|
|
|
|
|
|
config EXAMPLE_PROV_MGR_MAX_RETRY_CNT
|
|
|
|
int
|
|
|
|
default 5
|
|
|
|
prompt "Max retries before reseting provisioning state machine"
|
|
|
|
depends on EXAMPLE_RESET_PROV_MGR_ON_FAILURE
|
|
|
|
help
|
|
|
|
Set the Maximum retry to avoid reconnecting to an inexistent AP or if credentials
|
|
|
|
are misconfigured. Provisioned credentials are erased and internal state machine
|
|
|
|
is reset after this threshold is reached.
|
|
|
|
|
2021-02-18 05:45:21 -05:00
|
|
|
config EXAMPLE_PROV_SHOW_QR
|
|
|
|
bool "Show provisioning QR code"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Show the QR code for provisioning.
|
2021-06-23 08:03:23 -04:00
|
|
|
|
|
|
|
config EXAMPLE_PROV_USING_BLUEDROID
|
|
|
|
bool
|
|
|
|
depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3))
|
|
|
|
select BT_BLE_42_FEATURES_SUPPORTED
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This enables BLE 4.2 features for Bluedroid.
|
2020-01-03 10:36:10 -05:00
|
|
|
endmenu
|