
TCW210-TH-R1.2 - January 2018
Page 23
If the HTTP POST is received and processed, “OK” will be shown close to the button.
Along with this, an XML file will be created in the same directory, where post.php is
located. The file name will contain time information and looks like
20171120103318_status.xml.
8.2.2.
HTTP Get
HTTP Get can be used to monitor TCW210-TH via XML or JSON files. The format is as follows:
http://device.ip.address/status.xml
http://device.ip.address/status.json
See sections 8.2.4 XML file structure and 8.2.5 JSON file structure for details of files.
The device supports basic access authentication. This should be count if HTTP API
authentication is enabled.
HTTP Get can be sent at any time to TCW210-TH 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 Post
receiving from the same device.
8.2.3.
HTTP commands
Command
Description
http://device.ip.address/status.xml?pper=120
Push period - 120 sec
8.2.4.
XML file structure
<Monitor>
<DeviceInfo>
<DeviceName>TCW210-TH</DeviceName>
<HostName>TCW210-TH</HostName>
<ID>D8-80-39-35-54-EB</ID>
<FwVer>TCW210-TH-v1.213</FwVer>
<MnfInfo>www.teracomsystems.com</MnfInfo>
<SysContact>[email protected]</SysContact>
<SysName>TCW210-TH</SysName>
<SysLocation>Ruse</SysLocation>
</DeviceInfo>
<S>
<S1>
<description>S1:TST1xx</description>
<id>2867895F07000058</id>
<SenType>1Wire</SenType>
<item1>
<value>22.3</value>
<unit>°C</unit>
<alarm>1</alarm>
<min>-40.0</min>
<max>15.0</max>
<hys>1.0</hys>
</item1>
<item2>
<value>---</value>
<unit>---</unit>
<alarm>0</alarm>
<min>---</min>
<max>---</max>
<hys>---</hys>
</item2>
<item3>
<value>---</value>
<unit>---</unit>
<alarm>---</alarm>
<min>---</min>
<max>---</max>
<hys>---</hys>
</item3>
</S1>
<S2>
Содержание TCW210-H
Страница 1: ......
Страница 38: ...TCW210 TH R1 2 January 2018 Page 37 Appendix A Fig 1...