sensor_roll_close_file()

Updated: April 19, 2023

Close the file descriptor for a file on the sensor roll

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_roll_close_file(int fd)

Arguments:

fd
The file descriptor to close.

Library:

libsensor

Description:

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().

Returns:

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