sensor_stop_recording()

Stop the recording of sensor data

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_stop_recording(sensor_handle_t handle,
                                     struct timespec *time)

Arguments:

handle
The handle that's returned from calling sensor_open().
time
Set to NULL to stastop recording immediately or use an absolute time (with CLOCK_MONOTONIC as the reference) at when to stop recording. Subsequent calls to sensor_stop_recording() before stopping time will update the stopping time or stop immediately.

Library:

libsensor

Returns:

SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.