Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.04 KB

InvokeOutputCommand.md

File metadata and controls

37 lines (26 loc) · 1.04 KB
title keywords status created updated createdby updatedby
Scripting - Invoking Output Commands
workflow, scripting, workflow, outputs, messages, sending, transmitter
approved
20171009
20171013
bytemaster-0xff
klworkman

Home > Scripting

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.