Description
This function adds a new event that is triggered whenever the given item changes.
Signature
nxa.AddItemEvent (string, bool, bool, bool, number, string)
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
string | M | itemID of the source Server Item that triggers the event | |
bool | M | similar to the OnReceive parameter of the task definition, thisparameterindicatesthattheeventistriggered if a read request is received on the given item | |
bool | M | similar to the OnSent parameter of the task definition, thisparameterindicatesthattheeventistriggered if a new value is sent to the given item | |
bool | M | similar to the OnSet parameter of the task definition, thisparameterindicatesthattheeventistriggered if a new value is set | |
number | M | delay in milliseconds | |
string | M | script that is executed when the event is triggered |
Return
None.