Updated: October 28, 2024 |
Set the sensor roll path
#include <sensor/sensor_api.h>
sensor_error_t sensor_roll_set_path(sensor_handle_t handle, char *pathname)
Use this function to change the directory that the Sensor library uses to generate filenames when you call sensor_roll_open_file(). The value you set for the pathname argument must a NULL-terminated string and must not be larger than SENSOR_MAX_FILENAME_LEN. The path you select must be a directory which your application has write access to.
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.