Differences

This shows you the differences between two versions of the page.

Link to this comparison view

trigger:reference [2024/09/20 01:07] (current)
optrix created
Line 1: Line 1:
 +====Reference====
  
 +When you create a function to be triggered, it takes a single parameter - a [[trigger|Trigger]] object.
 +
 +You can also decorate the function with a variety of different decorators that change its behaviour.
 +
 +===Trigger===
 +
 +The **trigger** decorator is always required - it marks the function as something to be triggered by a data-driven event.
 +
 +===Data===
 +
 +A single trigger may have several **data** decorators. Each one specifies a different channel of data that is monitored to power the