Hi, I'm having an issue with the bt_mesh_resume()
function in my project based on Zephyr and Bluetooth Mesh. My code is trying to cycle the Mesh network on and off to save power — it should stay active for 20 seconds and then sleep for 30 seconds. However, when calling bt_mesh_resume()
, I encounter the following errors:
- -16 (EBUSY) - It seems something is blocking the Mesh from resuming.
- -120 (ENOMSG) - It appears to be a message-related error in the Mesh communication.
I'm using a modified version of the mesh_chat
example, which processes messages without needing UART shell. I want the Mesh to work for a set time after provisioning, without using a Friend node or Low Power node features.
Here is a fragment of my logs:
Here is a fragment of my code:
Has anyone encountered similar issues? I've tried resetting the Mesh with bt_mesh_reset()
and reinitializing it, but it hasn't resolved the problem. I'm using nRF52832 with Zephyr 2.6.1.
Any help would be greatly appreciated!