This change has been planned for a while, and BTHome v2 + Home Assistant is currently the most convenient, hassle-free and maintained way to interface with the BLE sample currently.
52 lines
1.4 KiB
Text
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 30
|
|
|
|
config PRST_BLE_MAX_ADV_INTERVAL
|
|
int "Maximum advertising interval in milliseconds"
|
|
default 40
|
|
|
|
choice PRST_BLE_ENCODING
|
|
prompt "b-parasite BLE encoding"
|
|
default PRST_BLE_ENCODING_BTHOME_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
|