51 lines
1.1 KiB
Text
51 lines
1.1 KiB
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_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
|