WebRelay Users Manual
The pulseTime variable does not change the pulse time specified in the setup page and it is not stored
or recorded. The pulseTime variable only changes the pulse duration for the single pulse initiated by that
command. In other words, you must issue the pulseTime for each pulse command that differs from the
preset pulse time. For example, suppose the pulse time is set to 1.5 seconds in the configuration pages.
To issue one 1.5 second pulse, three five second pulses, and a 1.5 second pulse once again, you would
issue the following commands...
Command
Description
state.xml?relayState=2
This will pulse the relay for the preset time (1.5
seconds)
state.xml?relayState=2&pulseTime=5
This will pulse the relay for 5 seconds.
state.xml?relayState=2&pulseTime=5
This will pulse the relay for 5 seconds
state.xml?relayState=2&pulseTime=5
This will pulse the relay for 5 seconds
state.xml?relayState=2
This will pulse the relay for the preset time (1.5
seconds)
5.1.3 Message Acknowledgment
When commands are sent to WebRelay, its current state is returned in the form of an XML page.
Note: The XML replay does not contain headers. To generate an XML reply with headers use the
following command:
Command
Description
stateFull.xml
Return the XML reply with headers
The XML commands can also be sent without having WebRelay return the XML page. This is
accomplished by adding the noReply field as follows:
Command
Description
http://192.168.1.2/state.xml?relayState=1&noReply=1
Turn the relay ‘ON’ without returning state
http://192.168.1.2/state.xml?relayState=0&noReply=1
Turn the relay ‘OFF’ without returning state
Xytronix Research & Design, Inc.
Page 61