zephyr/doc/connectivity/bluetooth/api
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
..
mesh Bluetooth: Mesh: Add API to store model's user data in settings work 2023-05-08 09:58:21 +02:00
shell doc: Bluetooth: Add CAP documentation 2023-03-21 09:35:05 +01:00
att.rst doc: Bluetooth: Add ATT section in docs 2022-08-19 11:59:52 +02:00
audio.rst Bluetooth: Audio: Fix minor bt_audio -> bt_bap issues 2023-03-07 16:21:44 +01:00
bap.rst Bluetooth: Audio: Fix minor bt_audio -> bt_bap issues 2023-03-07 16:21:44 +01:00
cap.rst doc: Bluetooth: Add CAP documentation 2023-03-21 09:35:05 +01:00
connection_mgmt.rst doc: connectivity: bluetooth: sync function name 2023-03-21 18:09:03 +00:00
controller.rst
coordinated_sets.rst Bluetooth: Audio: Rename CSIS to CSIP 2022-11-24 15:23:48 +01:00
crypto.rst
data_buffer.rst
gap.rst
gatt.rst doc: Documenting 32 bit UUID support in GATT 2022-08-22 16:31:44 +00:00
hci_drivers.rst
hci_raw.rst
hci.txt Bluetooth: hci: Add VS IQ samples report using 16 bit sign integer sampl 2022-08-19 16:26:10 +02:00
hfp.rst
index.rst doc: Bluetooth: Add CAP documentation 2023-03-21 09:35:05 +01:00
l2cap.rst
media.rst
mesh.rst
microphone.rst Bluetooth: Audio: Rename MICS to MICP 2022-07-06 10:41:52 +02:00
rfcomm.rst
sdp.rst
services.rst doc: Bluetooth: Document the services APIs 2022-05-24 17:49:17 +02:00
uuid.rst
volume.rst Bluetooth: Audio: Rename VCS to VCP 2022-11-28 17:43:40 +01:00