XW-210 WiFi™ Users Manual
Section 6: Auxiliary Operations
6.1 XML
Custom XML computer applications may be created to monitor and control the XW-210. This method
does not use a web browser. There is a single XML page that can be used to monitor and control the
XW-210,
state.xml
. The XW-210 does not support
diagnostics.xml
.
6.1.1 state.xml
XML Monitor All Functions
The state of the Relays, Inputs, Sensors, Registers, and Vin can be monitored by sending a request to
port 80 (or port specified in setup). This can be demonstrated by entering the following URL into the
address bar of a web browser (substituting the IP address as necessary):
http://192.168.1.2/state.xml
The following state.xml page is returned:
<datavalues>
<input1state>0</input1state>
<relay1state>0</relay1state>
<units>F</units>
<sensor1>x.x</sensor1>
<sensor2>x.x</sensor2>
<sensor3>x.x</sensor3>
<sensor4>x.x</sensor4>
<s1Alrm>0</s1Alrm>
<s2Alrm>0</s2Alrm>
<s3Alrm>0</s3Alrm>
<s4Alrm>0</s4Alrm>
<count1>23</count1>
<register1>0.00</register1>
<register2>0.00</register2>
<register3>0.00</register3>
<register4>0.00</register4>
<vin>9.577</vin>
<time>1343647469</time>
</datavalues>
The numbers enclosed by the tags,
<tag>
, indicate the current state or value monitored by XW-210.
Values for each tag are described in the table below.
XML computer applications will open a TCP/IP socket with the XW-210 and send a
GET
command
followed by the state.xml command string. (See
Section 6.2: HTTP Get Requests
for instructions on
using GET.)
XML Tags*
Monitor Values
<input1state>
0=off (voltage not applied to input one)
1=on (voltage applied to input one)
<relay1state>
0=off (coil one off)
1=on (coil one energized)
<units>
F=Fahrenheit
C=Celsius
Xytronix Research & Design, Inc.
Page 57
Summary of Contents for WebRelay Wireless XW-210I
Page 1: ......