zunoIsChannelUpdated()
This function helps to track changes of the variable associated with the channel. Instead of tracking the the variable change you can use zunoIsChannelUpdated(channelNumber) that returns true if new value is received via Z-Wave.
zunoIsChannelUpdated(channelNumber)
channelNumber
Number of channel as defined in ZUNO_SETUP_CHANNELS() staring from 1.
This function tracks only changes comming from the Z-Wave network. It does not track changes of the variable in your sketch. It is the responsibility of your sketch to call zunoSendReport(channelNumber) when the value is changed in your sketch.
ZUNO_SETUP_CHANNELS(ZUNO_SWITCH_BINARY(lightStatus, NULL));
byte lightStatus = 0;
void setup() {
...
}
void loop() {
...
if (zunoIsChannelUpdated(1)) {
// change relay state
}
...
}