Start recording sensor data to a file
Synopsis:
#include <sensor/sensor_api.h>
sensor_error_t sensor_start_recording(sensor_handle_t handle,
const char *path,
struct timespec *time)
Arguments:
- handle
- The handle that's returned from calling sensor_open().
- path
- The path of the file to record to. The file extension determines the compression to be used (see sensor_roll_format_t); the default is uncompressed.
- time
- Set to NULL to start recording immediately, or to an absolute time (with CLOCK_MONOTONIC as the reference) to specify when to start recording.
Library:
libsensor
Returns:
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.