ZUNO_SETUP_CFGPARAMETER_HANDLER()

Z-Uno can be configured using standard Z-Wave Configuration feature. A Z-Wave controller can push parameter values to Z-Uno to tune Z-Uno behavior without changing Z-Uno sketch.

This macro defines the handler to be called on Configuration parameter change.

Z-Uno supports up to 32 configurable parameters.
ZUNO_SETUP_CFGPARAMETER_HANDLER(config_parameter_changed) config_parameter_changed Function to be called on parameters changed from the Z-Wave network. Function prototype is:
void config_parameter_changed(byte param, dword * value)
param is the parameter number.
value is the new value in 4-bytes representation
Configuration parameters are automatically saved to the EEPROM. You can get them from the EEPROM at any time (even after reboot) using zunoLoadCFGParam(param) or save (to be reported back to the controller upon request) using zunoSaveCFGParam(param, value) zunoLoadCFGParam(byte param, dword * value); param Number of the parameter to be loaded from the EEPROM (starts from 64) value reference to the dword variable to load the value to zunoSaveCFGParam(byte param, dword * value); param Number of the parameter to be saved to the EEPROM (starts from 64) value reference to the dword variable to take the value from Parameters on the Z-Wave controller side are numbered from 64 to 96. Note that Configuration parameters are signed values when defined in the Z-Wave controller.
         dword paramValue;

ZUNO_SETUP_CFGPARAMETER_HANDLER(config_parameter_changed);

void setup() {
  zunoLoadCFGParam(64, &paramValue);
}

void config_parameter_changed(byte param, dword * value) {
    if(param == 64) { // The first user-defined parameter 
      paramValue = *value;  
    }
}
Configuration parameters values are stored in the EEPROM. Get more information about Z-Wave.