Updated: October 28, 2024 |
Publish a filled buffer of interim data
#include <sensor/sensor_interim_data.h>
sensor_error_t sensor_interim_data_publish(sensor_handle_t handle, bool update_header, sensor_buffer_t *buffer)
After you allocate a buffer with a call to sensor_interim_data_alloc() and fill the buffer with the appropriate data, use sensor_interim_data_publish() to publish the interim data and make it available to subscribers of the Sensor Framework.
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.