zephyr/doc/connectivity
Pavel Vasilyev 177e9b93bf Bluetooth: Mesh: Add API to store model's user data in settings work
Mesh models may have a data that needs to be stored persistently.
Currently, the models should call bt_mesh_model_data_store and the store
will happen in the calling context. Most likely that it will be called
in BT RX thread as this is the context from which model's opcodes
handlers are called. Thus, the thread will be blocked until the store is
finished.

Another issues is that some models may have states that changes
frequently. Triggering the store on every state change may wear out
flash. Therefore, the models need to implement some postpone mechanism
to reduce the flash wear out.

The mesh stack has already implemented the mechanism of deferred store
with its own settings. The models could use it instead of implementing
their own mechanism.

In combination with the mesh settings workqueue, the models can store
their data without blocking the stack work.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2023-05-08 09:58:21 +02:00
..
bluetooth Bluetooth: Mesh: Add API to store model's user data in settings work 2023-05-08 09:58:21 +02:00
lora_lorawan lorawan: enable run-time config of region/freq 2022-11-14 11:16:16 +00:00
networking doc: net: Add more info for Arm FVP user mode networking 2023-04-11 11:27:05 +02:00
usb_c doc: Document the USB-C Source Subsystem 2023-04-28 10:06:01 +02:00
index.rst doc: Document the USB-C Subsystem 2022-10-22 18:38:35 -04:00