Updated: October 28, 2024 |
Close the file descriptor for a file on the sensor roll
#include <sensor/sensor_api.h>
sensor_error_t sensor_roll_close_file(int fd)
The sensor roll is a directory on the device where the Sensor library saves files. Use this function to close the file descriptor that was returned for one of these files by calling sensor_roll_open_file().
SENSOR_EOK when the function successfully completes, otherwise another sensor_error_t value that provides the reason that the call failed.