Skip to content

Commit 598eed0

Browse files
MarekPietarlubos
authored andcommitted
caf: ble_adv: Add suspended states
Allow to suspend module in runtime. Jira: NCSDK-24220 Signed-off-by: Marek Pieta <[email protected]> Signed-off-by: Aleksander Strzebonski <[email protected]>
1 parent b284b2c commit 598eed0

File tree

2 files changed

+236
-19
lines changed

2 files changed

+236
-19
lines changed

subsys/caf/modules/Kconfig.ble_adv

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ config CAF_BLE_ADV_POWER_DOWN_ON_DISCONNECTION_REASON_0X15
2727
(Remote Device Terminated due to Power Off). The module instantly
2828
stops Bluetooth LE advertising and submits a force_power_down event.
2929

30+
config CAF_BLE_ADV_MODULE_SUSPEND_EVENTS
31+
bool "Module suspend/resume request events support"
32+
depends on CAF_MODULE_SUSPEND_EVENTS
33+
default y
34+
35+
config CAF_BLE_ADV_SUSPEND_ON_READY
36+
bool "Automatically suspend module right after initialization"
37+
depends on CAF_BLE_ADV_MODULE_SUSPEND_EVENTS
38+
3039
config CAF_BLE_ADV_DIRECT_ADV
3140
bool "Advertise to bonded peer directly"
3241
depends on SETTINGS

0 commit comments

Comments
 (0)