b-parasite-esp32/code/nrf-connect/samples/ble/Kconfig
rbaron a93171b9bf Adds support for user-supplied BT address
Also cleans up BLE configs
2022-12-01 19:48:36 +01:00

43 lines
1.1 KiB
Text

source "Kconfig.zephyr"
config PRST_SLEEP_DURATION_SEC
int "Sleep duration in seconds"
default 600
config PRST_BLE_ADV_DURATION_SEC
int "Advertising duration in seconds"
default 1
choice PRST_BLE_ENCODING
prompt "b-parasite BLE encoding"
default PRST_BLE_ENCODING_BPARASITE_V2
config PRST_BLE_ENCODING_BPARASITE_V2
bool "Uses the custom b-parasite protocol v2 for encoding advertising packets"
config PRST_BLE_ENCODING_BTHOME_V1
bool "Uses the BTHome (bthome.io) BLE encoding (v1)"
config PRST_BLE_ENCODING_BTHOME_V2
bool "Uses the BTHome (bthome.io) BLE encoding (v2)"
endchoice # PRST_BLE_ENCODING
config PRST_BLE_ENCODING_SERVICE_DATA_LEN
int
help
Size of the service data buffer.
default 20 if PRST_BLE_ENCODING_BPARASITE_V2
default 18 if PRST_BLE_ENCODING_BTHOME_V1
default 19 if PRST_BLE_ENCODING_BTHOME_V2
config PRST_BLE_HAS_USER_DEFINED_RANDOM_STATIC_ADDR
bool "Whether to use a custom BLE address"
config PRST_BLE_USER_DEFINED_RANDOM_STATIC_ADDR
string "Overrides the device's BT address"
help
This address has to be random static (e.g.: f0:ca:f0:ca:01:d5).
depends on PRST_BLE_HAS_USER_DEFINED_RANDOM_STATIC_ADDR