Real Time Automation, Inc.
42
1-800-249-1612
Requesting Data for an Individual Device
To request data for an individual device that you have configured within the gateway, you simply need
to specify the way you would like the data for the device encoded as well as the name you supplied for
it. For example, the URL to request data for a device
named “Breaker1” encoded as XML would be:
http://192.168.0.1/gateway/xml/device/Breaker1
Please take note of the format:
http://
Error! Hyperlink reference not valid.
ADDRESS OF YOUR
GATEWAY]
/gateway/
[ENCODING]
/device/
[DEVICE’S NAME]
The red italicized text in brackets indicates the information you need to fill in depending upon your
gateway’s IP address, how
you would like the data encoded (JSON or XML) and the name you gave to
the requested device when you configured your gateway.
Requesting a Group of Devices
To request data for a group of devices the format of the URL is like that for requesting an individual
device. For example, to request data encoded as XML for a group of devices
named “Breakers_West”,
the URL would be:
http://192.168.0.1/gateway/xml/group/Breakers_West
The format is:
http://
Error! Hyperlink reference not valid.
ADDRESS OF YOUR
GATEWAY]
/gateway/
[ENCODING]
/group/
[GROUP’S NAME]
As with requesting data for an individual device, the red italicized text in brackets indicates the
information you need to fill in depending upon your gateway’s IP address, how you would like the data
encoded (JSON or XML) and the name you gave to the group of devices when you configured your
gateway.
Filtering Requests by Point Names
When you are requesting data for a specific device or a group of devices, you can add an optional list of
one or more data point names to filter the data even further. For instance, if you had a group of devices
you named “Breakers_West” and you are only interested in the
data points within that group
named
“Temperature” and “Tripped_State” encoded as XML, you can append those data point names using the
following format:
http://192.168.0.1/gateway/xml/group/Breakers_West?Temperature&Tripped_State