How to send data, if the device is sleeping


Has to make some change, so the Api is not send data to the device if it is sleeping.


pobel35 wrote May 17, 2011 at 1:32 PM


Since the node initialization is staged and thread synchronized I propose that when loading the cached (TODO) node information, we setup the WakeUp commandclass to cache node commands, and once a wakeup is received it will flush the cached commands to the node.

Somehow this should integrate with the send message.

A general hook into the send message from the command classes might be a good solution, since the multiinstance/multichannel will need a similar hook to encapsulate the commands from a multiinstanced commandclass (I will in the near future see if I can come up with a solution for this problem, any comments are greatly appreciated)

pobel35 wrote May 19, 2011 at 7:48 AM

I have added a SendMessage method in the Node object, and some code to show how MultiInstance and WakeUp can hook into the send process.

TODO: Change all ZWavePort.AddMessage to this.Node.SendMessage in the command classes.

wrote Feb 14, 2013 at 1:26 AM