sensor_roll_set_filename_suffix()

Updated: April 19, 2023

Set the suffix to add to filenames generated from the sensor roll

Synopsis:

#include <sensor/sensor_api.h>
sensor_error_t sensor_roll_set_filename_suffix(sensor_handle_t handle,
                                               char *suffix)

Arguments:

handle
The handle that's returned from calling sensor_open().
suffix
The NULL-terminated string to append as a suffix. Specifying an empty string will remove the suffix. The length of the suffix needs to be less than SENSOR_MAX_ROLL_SUFFIX_LEN.

Library:

libsensor

Description:

Use this function to add a specific suffix that will be appended to all filenames generated using sensor_roll_open_file() for this handle.

Returns:

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