zephyr/doc
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
..
_doxygen device: move independent groups to groups.dox 2022-10-17 10:13:37 +02:00
_extensions/zephyr docs: kconfig: restore appearance of kconfig search 2023-02-07 18:22:06 +01:00
_scripts doc: Add old toolchain pages to redirects 2023-04-04 10:53:02 -07:00
_static doc: Fix CSS issue with keyboard shortcuts on dark theme 2023-02-23 17:45:40 +01:00
_templates
build doc: dts: adjust CONFIG_COMPILER_TRACK_MACRO_EXPANSION text 2023-05-05 12:19:36 -07:00
connectivity Bluetooth: Mesh: Add API to store model's user data in settings work 2023-05-08 09:58:21 +02:00
contribute doc: external components: Add a section about the main manifest 2023-04-19 13:58:28 -04:00
develop lib/libc: Move malloc from minimal to common library 2023-04-27 20:17:24 +09:00
hardware docs: bc12: Update for charging mode operation 2023-05-08 09:57:56 +02:00
images
introduction
kernel doc: Update FIFO and LIFO documentation 2023-05-02 04:43:08 -04:00
project docs: Move RFCs into a separate document 2023-03-06 21:59:23 +01:00
releases storage: updated release notes for flash_map list labels 2023-05-05 10:02:19 +02:00
security doc: security: Unify style 2023-04-21 16:33:16 +02:00
services doc: services: storage: flash_map: Fix include references 2023-05-03 12:39:49 +02:00
templates
404.rst doc: Suggest filing GitHub issue for broken links 2022-04-28 10:26:03 +02:00
CMakeLists.txt doc: set MIN_WEST_VERSION to 1.0.0 2023-03-08 14:16:53 -08:00
conf.py syscall: Introduce __syscall_always_inline 2023-04-20 14:56:09 -04:00
glossary.rst
index-tex.rst doc: get rid of reference section 2022-04-07 16:35:19 +02:00
index.rst doc: get rid of reference section 2022-04-07 16:35:19 +02:00
kconfig.rst
known-warnings.txt doc: Bluetooth: Document the services APIs 2022-05-24 17:49:17 +02:00
LICENSING.rst
Makefile doc: add support for linkcheck 2022-09-23 17:28:47 +00:00
substitutions.txt
zephyr.doxyfile.in syscall: Introduce __syscall_always_inline 2023-04-20 14:56:09 -04:00