BLE MESH - Sensor server model cadence

dhari99
Posts: 5
Joined: Mon Jul 04, 2022 8:36 am

BLE MESH - Sensor server model cadence

Postby dhari99 » Mon Sep 12, 2022 7:50 am

Hi,

esp-idf version used - 4.4.0

I am currently working on developing sensor server application in esp-ble-mesh. When I am using the "esp_ble_mesh_model_publish()" API, I am able to update the sensor values for the three sensors configured in a single server model. However, if I set the model publication state to 2 seconds in model configuration, the node is publishing the data but, the sensor values are not getting updated in the sensor's buffer. I am updating the sensor values using the code shown below in the screenshot attached. I call the code snippet every 1 second to update the current sensor value. But without using the "esp_ble_mesh_model_publish()" API, I am not able to update the sensor value.

And also, is there any event that raises which we can pick up in the application layer each time the model publication timer expires? Model publication timer is enabled through setting the publishing address through model configuration
Attachments
publication.png
publication.png (14.93 KiB) Viewed 910 times

Who is online

Users browsing this forum: Google [Bot] and 91 guests