If you want an item to execute a read command, or you want a write command to be executed programmatically, the READ and WRITE functions integrated in SIA Connect can help you achieve that goal
Below is an outline of the functions, and their input arguments
| Function | Syntax | Description |
|---|---|---|
| WRITE |
WRITE("VALUE")
OR
WRITE("TARGET_UID", "I")
OR
WRITE("TARGET_NAME", "VALUE") |
This command will execute a WRITE command based on the inputs. There are two inputs to the command, one mandatory and one optional
Mandatory input: VALUE
This defines the value being written to the receiver. This input can take either static value inputs or values from other items, ie.: %ITEM_SENDER.VALUE% or %[ITEM_NAME].VALUE%
Optional input TARGET_UID / TARGET_NAME
This defines the receiver of the write command. If this is left empty, the receiver in the mapping will receive the value. If the target is defined, the defined target will receive the value, regardless of whether that same item is the receiver in the mapping |
| READ |
READ("TARGET_UID")
OR
READ("TARGET_NAME") |
This command will force a read command for the defined target. So the user is able to utilize scripting to force reads, updates, and any subsequent mappings, for any item in the paramter
Mandatory input: TARGET_UID / TARGET_NAME
This defines which item should execute their read command. |