TCW242-S_R1.0 – July 2021
Page 31
9.2.2.
HTTP Get
HTTP Get can be used to monitor TCW242-S via XML or JSON files. The format is as follows:
http://device.ip.address/status.xml
http://device.ip.address/status.json
See sections
9.2.4 XML file structure
and
9.2.5 JSON file structure
for details of files.
HTTP Get can be sent at any time to TCW242-S if it is on the same network or it has appropriate
routing.
If there isn’t direct access to the device, HTTP Get can be sent immediately after HTTP/HTTPS
Post receiving from the same device.
9.2.2.1.
Commands
All commands used with HTTP/HTTPS Post can be used also with HTTP Get. The right format
is:
http://device.ip.address/status.xml?yyy=xxx
Where:
yyy is the command;
xxx is the parameter.
Example:
http://device.ip.address/status.xml?pper=300 will set Post period = 300 sec.
9.2.2.2.
HTTP GET authentication
If HTTP API authentication is enabled, basic access authentication is required to access the
status.xml file. The format of the command is shown in the table below:
XML/HTTP API authentication Format
enabled
http://device.ip.address/status.xml?a=uuuu:pppp
disabled
http://device.ip.address/status.xml
Example:
http://device.ip.address/status.xml?a=admin:admin&pper=120 will set post period on 120 sec
in case the username=admin and pass=admin
Summary of Contents for TCW242-S
Page 1: ......
Page 52: ...TCW242 S_R1 0 July 2021 Page 52 Appendix A Fig 1 Fig 2...