Configuring Bluetooth mesh in nRF Connect SDK¶
The Bluetooth mesh support is controlled by CONFIG_BT_MESH
, which depends on the following configuration options:
CONFIG_BT
- Enables the Bluetooth subsystem.CONFIG_BT_OBSERVER
- Enables the Bluetooth Observer role.CONFIG_BT_PERIPHERAL
- Enables the Bluetooth Peripheral role.
The Bluetooth mesh subsystem currently performs best with Zephyr’s Bluetooth LE Controller.
To force nRF Connect SDK to build with this controller, enable CONFIG_BT_LL_SW_SPLIT
.
Optional features configuration¶
Optional features in the Bluetooth mesh stack must be explicitly enabled:
CONFIG_BT_MESH_RELAY
- Enables message relaying.CONFIG_BT_MESH_FRIEND
- Enables the Friend role.CONFIG_BT_MESH_LOW_POWER
- Enabels the Low Power role.CONFIG_BT_MESH_PROVISIONER
- Enables the Provisioner role.CONFIG_BT_MESH_GATT_PROXY
- Enables the GATT Proxy Server role.CONFIG_BT_MESH_PB_GATT
- Enables the GATT provisioning bearer.CONFIG_BT_MESH_CDB
- Enables the Configuration Database subsystem.
The persistent storage of the Bluetooth mesh provisioning and configuration data is enabled by CONFIG_BT_SETTINGS
.
See the Persistent storage section of Bluetooth Stack Architecture for details.
Mesh models¶
The nRF Connect SDK Bluetooth mesh model implementations are optional features, and each model has individual Kconfig options that must be explicitly enabled. See Bluetooth mesh models for details.