The RequestDataItem() action sends a request to the asset for the value of a defined data item. The Axeda® Platform sends the request asynchronously and processes the new value later.
Note: The Request Data Item action is supported by Axeda IDM Agents and Axeda Wireless Protocol (AWP) agents. It is NOT supported by Axeda Gateway, Axeda Connector, or Axeda Agent Embedded.
RequestDataItem(String dataitem)
where:
dataitem - name of the data item from which you want to retrieve a value.
Important! If your data item names contain colons (for example, SNMP data items), you MUST use the escape sequence, $C, when using these data item names in an expression. For example, when you want to refer to a data item named 'Temp:12' in an expression rule, you need to use 'Temp$C12' in the rule for the data item to resolve to its current value. When updating that data item through an action, you need to use the actual data item name as a string variable: RequeetDataItem("Temp:12")
The following example sends a request to the asset for the value of the data item, valve_position:
Then/Else: RequestDataItem("valve_position")