File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,12 @@ menu "Example Configuration"
9
9
GPIO number on which the "Boot" button is connected. This is generally used
10
10
by the application for custom operations like toggling states, resetting to defaults, etc.
11
11
12
+ config APP_POP_TYPE
13
+ int "Proof of Posession Type"
14
+ default 1
15
+ range 0 2
16
+ help
17
+ 0: POP_TYPE_MAC
18
+ 1: POP_TYPE_RANDOM
19
+ 2: POP_TYPE_NONE
12
20
endmenu
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ void app_main()
205
205
* else, it will start Wi-Fi provisioning. The function will return
206
206
* after a connection has been successfully established
207
207
*/
208
- err = app_network_start (POP_TYPE_RANDOM );
208
+ err = app_network_start (( app_network_pop_type_t ) CONFIG_APP_POP_TYPE );
209
209
if (err != ESP_OK ) {
210
210
ESP_LOGE (TAG , "Could not start network. Aborting!!!" );
211
211
vTaskDelay (5000 /portTICK_PERIOD_MS );
You can’t perform that action at this time.
0 commit comments