# mco_fh_config_node_get_SCALAR_TYPE

Retrieve the configuration node’s value as SCALAR_TYPE.

### Prototype

        mco_SCALAR_TYPE mco_fh_config_node_get_SCALAR_TYPE(/*IN*/ mco_fh_config_node_h n,
                                        /*IN*/ SCALAR_TYPE def)

### Arguments

n | The configuration node handle
def | The default value if the field value is inaccessible or cannot be represented as a SCALAR_TYPE: bool, int8, uint8 or double

### Description

> This function returns the value of the configuration node. If the field value is inaccessible or cannot be represented as SCALAR_TYPE, it returns the default value in argument `def`.

### Return Codes

SCALAR_TYPE | The value of the configuration node as a SCALAR_TYPE: bool, int8, uint8 or double.

### Example

        bool TestFeedHandler::setup(mco_fh_config_node_h cfgroot)
        {
            // Read "delayms" parameter from module configuration.
            delayms_ = mco_fh_config_node_get_int8(mco_fh_config_node_get_child(cfgroot, "delayms"), 0);
            return true;
        }