Page 1 of 1

Zway Custom function calling

Posted: 05 Apr 2014 08:37
by visakh v
Hi All,

Recently I am working on Z wave Home automation and went through the Z-Way Developers Documentation.I am having a doubt over there, consider the functional class

Function Class AddNodeToNetwork
Syntax: AddNodeToNetwork(startStop, highPower = True, successCallback = NULL,failureCallback = NULL)

I am able to turn the Z-Wave chip by passing AddNodeToNetwork(1) in my python codes but how can I use the custom function calling like successCallback etc.. along with the AddNodeToNetwork.

Thanks

Re: Zway Custom function calling

Posted: 15 Apr 2014 01:19
by PoltoS
These callbacks can be passed in JS call. And they will called back in the JS backend engine. From there you can do your job. Why to use Python if there is full JS engine in Z-Way? May be you need to move some logic to JS to solve your problem?