Bluetooth: mesh: update model extension

Specifies that if Composition Data Page 1 is enabled, the models passed
to 'bt_mesh_model_extend' needs to be initialized prior to the call.
This is to ensure that the composition data is registered correctly.

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
This commit is contained in:
Håvard Reierstad 2023-10-16 14:24:15 +02:00 committed by Johan Hedberg
parent 393c5ce065
commit 0ec6f18434

View file

@ -1070,6 +1070,10 @@ void bt_mesh_model_data_store_schedule(struct bt_mesh_model *mod);
* extension list and element, giving the models extended subscription list
* capacity.
*
* If @kconfig{CONFIG_BT_MESH_COMP_PAGE_1} is enabled, it is not allowed to call
* this function before the @ref bt_mesh_model_cb.init callback is called
* for both models, except if it is called as part of the final callback.
*
* @param extending_mod Mesh model that is extending the base model.
* @param base_mod The model being extended.
*