Skip to content

Bluetooth Mesh stack question #53927

Answered by PavelVPV
venngar asked this question in General
Jan 19, 2023 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

You should only call Bluetooth Mesh API from a cooperative thread. Do not use the system workqueue to call a synchronous Bluetooth Mesh API as it will block the execution of the mesh stack until the API timeout expires. An example of such API will Config Client or Health Client APIs that use bt_mesh_msg_ack_ctx_match function (https://github.com/zephyrproject-rtos/zephyr/blob/main/include/zephyr/bluetooth/mesh/msg.h#L257-L258) to receive a response in the same execution context. For example, calling bt_mesh_cfg_cli_app_key_add with supplied status argument from the system workqueue will block sending the Config AppKey Add message until this call times out. In such case, the API will return

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@venngar
Comment options

@PavelVPV
Comment options

@venngar
Comment options

@PavelVPV
Comment options

@venngar
Comment options

Answer selected by venngar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #53926 on January 19, 2023 11:02.