-
CONFIG_BT_SETTINGS
¶
Store Bluetooth state and configuration persistently
Type: bool
Help¶
When selected, the Bluetooth stack will take care of storing (and restoring) the Bluetooth state (e.g. pairing keys) and configuration persistently in flash.
When this option has been enabled, it’s important that the application makes a call to settings_load() after having done all necessary initialization (e.g. calling bt_enable). The reason settings_load() is handled externally to the stack, is that there may be other subsystems using the settings API, in which case it’s more efficient to load all settings in one go, instead of each subsystem doing it independently.
Direct dependencies¶
SETTINGS
&& PRINTK
&& BT_HCI_HOST
&& BT_HCI
&& BT
(Includes any dependencies from if’s and menus.)
Defaults¶
No defaults. Implicitly defaults to n
.
Symbols selected by this symbol¶
MPU_ALLOW_FLASH_WRITE
ifARM_MPU
&&SETTINGS
&&PRINTK
&&BT_HCI_HOST
&&BT_HCI
&&BT
Kconfig definition¶
At subsys/bluetooth/host/Kconfig:139
Included via Kconfig:10
→ Kconfig.zephyr:35
→ subsys/Kconfig:8
→ subsys/bluetooth/Kconfig:155
Menu path: (top menu) → Bluetooth
config BT_SETTINGS bool prompt "Store Bluetooth state and configuration persistently" ifSETTINGS
&&PRINTK
&&BT_HCI_HOST
&&BT_HCI
&&BT
selectMPU_ALLOW_FLASH_WRITE
ifARM_MPU
&&SETTINGS
&&PRINTK
&&BT_HCI_HOST
&&BT_HCI
&&BT
depends onSETTINGS
&&PRINTK
&&BT_HCI_HOST
&&BT_HCI
&&BT
help When selected, the Bluetooth stack will take care of storing (and restoring) the Bluetooth state (e.g. pairing keys) and configuration persistently in flash. When this option has been enabled, it's important that the application makes a call to settings_load() after having done all necessary initialization (e.g. calling bt_enable). The reason settings_load() is handled externally to the stack, is that there may be other subsystems using the settings API, in which case it's more efficient to load all settings in one go, instead of each subsystem doing it independently.
(Definitions include propagated dependencies, including from if’s and menus.)