TCW112-CM-R3.2 - March 2018
Page 15
10.10
Monitor and control
OID
Name
Access
Description
Syntax
x
.3.1.0
digitalInputState
read-write Digital Input State
INTEGER { closed(0), open(1) }
x
.3.2.0
relayState
read-write Relay State
INTEGER { off(0), on(1) }
x
.3.3.0
relayPulse
read-write Relay Pulse
INTEGER { off(0), on(1) }
x
.3.4.0
voltx10Int
read-only Voltage x10 in Integer format
INTEGER (0..1000)
x
.3.5.0
tempx10Int
read-only Temperature x10 in Integer format
INTEGER (-400..1250)
x
.3.6.0
humix10Int
read-only Humidity x10 in Integer format
INTEGER (0..1000)
x
.3.7.0
configurationSaved
read-write
Configuration save status
SAVED/UNSAVED
INTEGER { unsaved(0), saved(1) }
x
.3.8.0
restartDevice
read-write Restart Device
INTEGER { cancel(0), restart(1) }
x
.3.9.0
temperatureUnits
read-write Temperature units
INTEGER { celsius(0), fahrenheit(1) }
11.
XML and HTTP API commands
XML is often preferred choice when it comes to M2M communication and system integration. The
monitored values are transmitted in status.xml file that can be easily processed by software
applications.
Below is the structure of the XML file, which is located at http://your.ip.address/status.xml:
<Monitor>
<Device>TCWTCW112-CM</Device>
<ID>00:04:A3:AA:00:01</ID>
<Hostname>TCW112-CM</Hostname>
<FW>3.00</FW>
<DigitalInput1Description>Digital In</DigitalInput1Description>
<DigitalInput1>OPEN</DigitalInput1>
<DinAlarm1>0</DinAlarm1>
<Relay1Description>Relay Out</Relay1Description>
<Relay1>OFF</Relay1>
<pulseWidth>6</pulseWidth>
<AnalogInput1Description>Analog In</AnalogInput1Description>
<AnalogInput1>3.3V</AnalogInput1>
<AinAlarm1>0</AinAlarm1>
<Sensor1Description>Sensor</Sensor1Description>
<Temperature1>21.6°C</Temperature1>
<TempAlarm1>0</TempAlarm1>
<Humidity1>37.8%RH</Humidity1>
<HumAlarm1>0</HumAlarm1>
</Monitor>
If XML/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
Where uuuu is username and pppp is password. Both parameters are unencrypted.
The relay output can be controlled by sending HTTP commands:
Summary of Contents for TCW112-CM
Page 1: ......
Page 20: ...TCW112 CM R3 2 March 2018 Page 19 Appendix A Fig 1 Fig 2...