Updated: October 28, 2024 |
Enable publishing of interim data
#include <sensor/sensor_interim_data.h>
sensor_error_t sensor_interim_data_start(sensor_handle_t handle)
For a publisher, this function makes publishing data possible by allocating the buffers to the pool. A publisher needs to call this function before calling sensor_interim_data_alloc() and sensor_interim_data_publish() to publish interim data.
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.