Skip to content

Commit 561a8e4

Browse files
PavelVPVjhedberg
authored andcommitted
Bluetooth: Mesh: Break up mesh settings
The mesh settings.c module is a giant piece of code responsible for storing the mesh stack configuration. Such approach makes it difficult to control the data to be stored, breaks the stack modules' encapsulation by forcing them to reveal the internal kitchen, which leads to unpleasant issues such as #19799. This commit moves the responsibility of storing the configuration to corresponding modules while keeping control of the moment of storing the configuration and of starting the stack after the settingss loading is completed. This doesn't introduce any abstraction between the mesh settings.c and other modules as it will add more complexity and overhead than necessary for the actual task. Fixes #19850 Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 472febf commit 561a8e4

File tree

26 files changed

+2400
-2377
lines changed

26 files changed

+2400
-2377
lines changed

subsys/bluetooth/mesh/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,12 @@ config BT_MESH_DEBUG_CDB
818818
help
819819
Use this option to enable configuration database debug logs.
820820

821+
config BT_MESH_DEBUG_CFG
822+
bool "Configuration debug"
823+
help
824+
Use this option to enable node configuration debug logs for the
825+
Bluetooth Mesh functionality.
826+
821827
endif # BT_MESH_DEBUG
822828

823829
endif # BT_MESH

0 commit comments

Comments
 (0)