zephyr/doc/connectivity/bluetooth
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
..
api Bluetooth: Mesh: Add API to store model's user data in settings work 2023-05-08 09:58:21 +02:00
autopts docs(bluetooth): fix misspelling of follow 2023-04-19 18:09:10 -04:00
img doc: connectivity: Bluetooth: Add initial Controller sections 2023-04-25 12:13:19 +02:00
bluetooth-arch.rst doc: connectivity: Bluetooth: Add initial Controller sections 2023-04-25 12:13:19 +02:00
bluetooth-audio-arch.rst doc: Bluetooth: Add CAP documentation 2023-03-21 09:35:05 +01:00
bluetooth-ctlr-arch.rst doc: connectivity: Bluetooth: Controller SoC peripheral usage 2023-04-25 12:13:19 +02:00
bluetooth-dev.rst Bluetooth: doc: Note on thread safety 2022-12-07 10:09:03 +00:00
bluetooth-qual.rst
bluetooth-shell.rst Bluetooth: Add some examples for Bluetooth shell 2023-02-07 11:58:00 +01:00
bluetooth-tools.rst doc: Add note about -z option to btproxy. 2022-10-25 10:54:09 +02:00
dis-pics.rst
gap-pics.rst
gatt-pics.rst
index.rst doc: connectivity: Bluetooth: Add initial Controller sections 2023-04-25 12:13:19 +02:00
l2cap-pics.rst
mesh-pics.rst
overview.rst doc: bluetooth: Update overview 2023-02-07 11:58:11 +01:00
rfcomm-pics.rst
sm-pics.rst