1menu "Example Configuration"
2
3    choice EXAMPLE_PROV_TRANSPORT
4        bool "Provisioning Transport"
5        default EXAMPLE_PROV_TRANSPORT_SOFTAP if IDF_TARGET_ESP32S2
6        default EXAMPLE_PROV_TRANSPORT_BLE
7        help
8            Wi-Fi provisioning component offers both, SoftAP and BLE transports. Choose any one.
9
10        config EXAMPLE_PROV_TRANSPORT_BLE
11            bool "BLE"
12            select BT_ENABLED
13            depends on !IDF_TARGET_ESP32S2
14        config EXAMPLE_PROV_TRANSPORT_SOFTAP
15            bool "Soft AP"
16    endchoice
17
18    config EXAMPLE_PROV_TRANSPORT
19        int
20        default 1 if EXAMPLE_PROV_TRANSPORT_BLE
21        default 2 if EXAMPLE_PROV_TRANSPORT_SOFTAP
22
23    config EXAMPLE_RESET_PROVISIONED
24        bool
25        default n
26        prompt "Reset provisioned status of the device"
27        help
28            This erases the NVS to reset provisioned status of the device on every reboot.
29            Provisioned status is determined by the Wi-Fi STA configuration, saved on the NVS.
30
31    config EXAMPLE_RESET_PROV_MGR_ON_FAILURE
32        bool
33        default y
34        prompt "Reset provisioned credentials and state machine after session failure"
35        help
36            Enable reseting provisioned credentials and state machine after session failure.
37            This will restart the provisioning service after retries are exhausted.
38
39    config EXAMPLE_PROV_MGR_MAX_RETRY_CNT
40        int
41        default 5
42        prompt "Max retries before reseting provisioning state machine"
43        depends on EXAMPLE_RESET_PROV_MGR_ON_FAILURE
44        help
45            Set the Maximum retry to avoid reconnecting to an inexistent AP or if credentials
46            are misconfigured. Provisioned credentials are erased and internal state machine
47            is reset after this threshold is reached.
48
49    config EXAMPLE_PROV_SHOW_QR
50        bool "Show provisioning QR code"
51        default y
52        help
53            Show the QR code for provisioning.
54
55    config EXAMPLE_PROV_USING_BLUEDROID
56        bool
57        depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3))
58        select BT_BLE_42_FEATURES_SUPPORTED
59        default y
60        help
61            This enables BLE 4.2 features for Bluedroid.
62endmenu
63