parse_config()

Parse a sensor specific attribute from the configuration file

Synopsis:

#include <sensor/external_sensor_api.h>
int parse_config(void *handle,
                 char *name,
                 char *value)

Arguments:

handle
The handle that's returned from calling the open_external_sensor() function.
name
The name of sensor attribute.
value
The value of sensor attribute.

Library:

libsensor

Description:

This function is called for each attribute associated with the sensor in the configuration file.

Note:

This function is optional.

Returns:

return 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.