Skip to content

Commit

Permalink
Bluetooth: Mesh: Break up mesh settings
Browse files Browse the repository at this point in the history
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 zephyrproject-rtos#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 zephyrproject-rtos#19850

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
  • Loading branch information
PavelVPV committed Jan 13, 2021
1 parent e710d36 commit a3f7198
Show file tree
Hide file tree
Showing 26 changed files with 2,400 additions and 2,377 deletions.
6 changes: 6 additions & 0 deletions subsys/bluetooth/mesh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,12 @@ config BT_MESH_DEBUG_CDB
help
Use this option to enable configuration database debug logs.

config BT_MESH_DEBUG_CFG
bool "Configuration debug"
help
Use this option to enable node configuration debug logs for the
Bluetooth Mesh functionality.

endif # BT_MESH_DEBUG

endif # BT_MESH
Loading

0 comments on commit a3f7198

Please sign in to comment.