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
BLE MESH - Sensor server model cadence
BLE MESH - Sensor server model cadence
- Attachments
-
- publication.png (14.93 KiB) Viewed 909 times
Who is online
Users browsing this forum: No registered users and 78 guests