sensor_roll_get_path()

Updated: April 19, 2023

Retrieve the sensor roll path

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_roll_get_path(sensor_handle_t handle,
                                    char *pathname,
                                    int pathlen)

Arguments:

handle
The handle that's returned from calling sensor_open().
pathname
A buffer to receive the NULL-terminated string specifying the path to the sensor roll.
pathlen
The size of the pathname buffer. This should be set to SENSOR_MAX_FILENAME_LEN.

Library:

libsensor

Description:

This function retrieves the path to the directory that the Sensor library uses to generate filenames when you call sensor_roll_open_file(). See also sensor_roll_set_path().

Returns:

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