Scripting - Sending Output Commands
Output Commands are used to build up the content that will be either sent out to devices or exported.
Ouptut Commands are invoked in script. In our example, we have an Output Command with a key of sensoroutput
. It can
be invoked with the following script:
function onXXXX(value){
OutputCommands.[KEYNAME].send('on',32);
}
- or -
function onXXXX(value){
OutputCommands.sensoroutput.send('on',32);
}
When you call the send
method, the onExecute on the Output Command will be executed to build up the content
that will be available to send or export messages. When sending a message, you can pass parameters that will be available to the onExecute
method.