Real Time Automation, Inc.
54
1-800-249-1612
Example Input Format (POST)
This format is used when an external web client writes XML/JSON data to the gateway through a HTTP
POST operation. The input format is the same as the output format except that the GroupName and
dataTimeStamp may be omitted. If they included, they are ignored.
Important Notes:
•
Only data points configured as write data points may be written to.
•
The value for STRING datatypes must between double quotation marks.
A gateway is configured for a breaker group and a drive group as shown below:
Minimum XML Input
At minimum, the XML POST is the
<Devices>
root element, and at least one
<Device>
child-element
containing the matching
<DeviceName>
tag of the device to be written to, and finally, at least one
writable data point tag/value pair.
The following example represents a minimum XML POST. This POST will write a value 100 to the point
named “Temperature” which belongs to the device named “Breaker”:
Expanded XML Input
The following example is slightly more complicated and writes one data point to one device
and two
data points
to a different device. Expanding on this pattern, it is possible to write to every writable data
point of every device configured in the gateway with a single XML write.
<Devices>
<Device>
<DeviceName>Breaker</DeviceName>
<Temperature>100</Temperature>
</Device>
</Devices>