Default values of configuration parameters

Discussion about Z-Uno product. Visit for more details.
Post Reply
Posts: 49
Joined: 08 Apr 2018 18:02

Default values of configuration parameters

Post by perjar »

Reading about the configuration parameters in z-uno (64-96) it looks like they are undefined if not set. ... arameters/

This would be the case when a sketch reads these values for the very first time.

It would be great if I could assume that if a parameter has never been set, it has value zero.
I want to my sketch to be as robust as possible and don't act on parameter values which are random. Perhaps I am expecting the user to go into the controller and set some values. But before he has time to do that, the sketch will be up and running and will need a default value on these parameters.

Is there is a clever way for the sketch to "know" if a value has been set deliberately from the z-wave controller or if the parameter just contains random data?

Post Reply