b-parasite-esp32/code/nrf-connect/samples/ble/Kconfig
rbaron 28db7224a6 Make advertisement intervals configurable
We were previously relying on the default values (100ms, 150ms). This
PR makes it easier to test and configure parameters for different
tradeoffs between range / power consumption (#98).
2023-01-28 11:44:17 +01:00

52 lines
1.4 KiB
Text

source "Kconfig.zephyr"
rsource "../../prstlib/Kconfig"
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
config PRST_BLE_MIN_ADV_INTERVAL
int "Minimum advertising interval in milliseconds"
default 100
config PRST_BLE_MAX_ADV_INTERVAL
int "Maximum advertising interval in milliseconds"
default 150
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