BLE-MESH get subscription address

dbamber
Posts: 2
Joined: Fri Feb 07, 2025 2:52 pm

BLE-MESH get subscription address

Postby dbamber » Fri Feb 07, 2025 2:59 pm

Good morning

In the project we are developing, from the provisioner (h2) we configure remote nodes (also h2) into groups using the ESP_BLE_MESH_MODEL_OP_MODEL_SUB_ADD message.

I need to retrieve the configuration present on the remote node, but I found only the ESP_BLE_MESH_MODEL_OP_MODEL_PUB_GET message.

Even the ESP_BLE_MESH_MODEL_OP_SIG_MODEL_SUB_GET message does not seem to return a valid value to me, but if I send a message to the group, the configured node responds.

How can I find out which group a node is registered to?

Regards

ahsrabrifat
Posts: 56
Joined: Sat Jan 18, 2025 2:31 pm

Re: BLE-MESH get subscription address

Postby ahsrabrifat » Fri Feb 07, 2025 5:22 pm

When sending ESP_BLE_MESH_MODEL_OP_SIG_MODEL_SUB_GET, you need to specify the correct model ID (SIG or Vendor model).
The response handler should correctly process the returned addresses.

dbamber
Posts: 2
Joined: Fri Feb 07, 2025 2:52 pm

Re: BLE-MESH get subscription address

Postby dbamber » Tue Feb 11, 2025 1:48 pm

Thank you for your response. I had set up the model correctly. After some testing, I saw that the information is returned in

Code: Select all

param->status_cb.model_sub_list
within the sub_addr attribute.
This occurs only if the node has been registered to a group, otherwise the sub_addr.len is 0

Who is online

Users browsing this forum: No registered users and 143 guests