Create and open the next available file on the sensor roll for writing
#include <sensor/sensor_api.h>
sensor_error_t sensor_roll_open_file(sensor_handle_t handle, int *fd, char *filename, int namelen, sensor_roll_format_t ext)
The sensor roll is a directory where the sensor application saves files. The Sensor Framework library manages unique filenames on behalf of the application. Use this function to retrieve the next available file from the sensor roll.
After this function successfully returns, a file is created and opened for writing. To close the file, you must call the sensor_roll_close_file() function.
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.