Updated: October 28, 2024 |
Stop streaming data from a sensor
#include <sensor/sensor_api.h>
sensor_error_t sensor_stop(sensor_handle_t handle, struct timespec *time)
This function stops streaming data from the given sensor. After streaming has been stopped, no more data will be received from the sensor.
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.