When I try to create a device parameter on my Zuno (latest generation as of this posting date), I find that Configuration data set at the controller will not work if the Zuno has a call to configure a parameter after it has initially been included to the controller. If the following code is present on the Zuno the controller cannot write back values from the controller to the device:
Code: Select all
ZUNO_SETUP_CONFIGPARAMETERS (
ZUNO_CONFIG_PARAMETER_INFO("Humidity Offset Value", "Defines humidity threshold tuning value", -10, 10, 3)
);
Code: Select all
ZUNO_SETUP_CFGPARAMETER_HANDLER(config_parameter_changed);
Here is my handler:
Code: Select all
void config_parameter_changed(uint8_t param, int32_t value) {
if (param == OFFSET_PARAM) { // The first user-defined parameter
paramValue = value;
#ifdef DEBUG
Serial.print("New value of the parameter OFFSET CONFIG PARMETER: ");
Serial.println(paramValue);
#endif
}
}
A similar problem occurs with calls to
Code: Select all
zunoSaveCFGParam(64, paramValue);
Has anyone else seen this strange behavior?
Thank you