b-parasite-esp32/code/nrf-connect/samples/ble/Kconfig
rbaron 5ceccfafcc Extracts prstlib
Moves ble sample to code/nrf-connect/samples
2022-11-27 18:37:42 +01:00

47 lines
983 B
Text

source "Kconfig.zephyr"
choice PRST_NETWORK
prompt "b-parasite Network"
default PRST_NETWORK_BLE
config PRST_NETWORK_NONE
bool "Network disabled"
config PRST_NETWORK_BLE
bool "Uses BLE as the network"
depends on BT
endchoice # PRST_NETWORK
config PRST_SLEEP_DURATION_SEC
int "Sleep duration in seconds"
default 600
###
### BLE configs
###
config PRST_BLE_ADV_DURATION_SEC
int "Advertising duration in seconds"
default 1
choice PRST_BLE_ENCODING
prompt "b-parasite BLE encoding"
depends on PRST_NETWORK_BLE
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
bool "Uses the BTHome (bthome.io) BLE encoding"
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