Updated: October 28, 2024 |
Parse a sensor-specific attribute from the configuration file
#include <sensor/external_sensor_api.h>
typedef int(* parse_config_func_t)(void *handle, char *name, char *value);
This function is called for each attribute associated with the sensor in the configuration file.
This function is optional.
SENSOR_EOK if the attribute was parsed successfully by the sensor, SENSOR_EOPNOTSUPP if the attribute is not a sensor-specific attribute, otherwise another sensor_error_t value if any errors encountered in the parsing of the attribute.