Bluetooth Mesh model configuration migration#
Bluetooth Mesh model configuration migration.
These commands are meant for migrating existing model configuration data from older releases to 9.0 and later releases.
Functions#
Macros#
Function Documentation#
sl_btmesh_model_migration_migrate_models#
sl_status_t sl_btmesh_model_migration_migrate_models ()
Migrate model configuration data and virtual address data from pre-9.0 release storage format to 9.0 release storage format.
The command expects that DCD page 0 data is stored in persistent storage and contains device composition data that corresponds to the model entries stored on the device. It will create new storage format entries and copy the existing model configurations to the new entries based on the model layout defined on DCD page 0.
After all data is successfully copied to new format the old entries will be removed.
This command must be executed prior to node or Provisioner initialization.
Returns
SL_STATUS_OK if successful. Error code otherwise.