int myqttd_config_get_number ( MyQttdCtx ctx,
const char *  path,
const char *  attr_name 
)

Allows to get the value found on provided config path at the selected attribute.

Parameters
ctxThe myqttd context where to get the configuration value.
pathThe path to the node where the config is found.
attr_nameThe attribute name to be returned as a number.
Returns
The function returns the value configured or -1 in the case the configuration is wrong. The function returns -2 in the case path, ctx or attr_name are NULL. The function returns -3 in the case the path is not found so the user can take default action.

References myqtt_support_strtod(), and wrn.