7.9
Control via HTTP protocol
Nano modules can be controlled using HTTP GET.
To read the current state of the module, you can refer to the resource in the web
browser:
http://192.168.111.15/status.xml
XML file consist all of the information:
<
response
>
<
prod_name
>
Nano-1-0
</
prod_name
>
<
sv
>
1.21
</
sv
>
<
mac
>
00:00:00:00:00:00
</
mac
>
<
out
>
00000001
</
out
>
<
on
>
00000001
</
on
>
<
in
>
00000000
</
in
>
<
counter1
>
0
</
counter1
>
<
temp1
>
0.0
</
temp1
>
</
response
>
Section
Description
<prod_name>Nano-1-0</prod_name>
Module type
<sv>1.17</sv>
The software version of the module
<mac>00:00:00:00:00:00</mac>
MAC address of the module
<out>00000001</out>
Relay state
<on>00000001</on>
Output state
<in>00000000</in>
In the Nano Relay Output module always 0
<counter1>0</counter1>
In the Nano Relay Output module always 0
<temp1>0.0</temp1>
In the Nano Relay Output module always 0
HTTP GET command
Description
http://nr_ip/stat.php?on=1
Enable output relay
http://nr_ip/stat.php?off=1
Disable output relay
http://nr_ip/stat.php?inv=1
Invert output state
http://nr_ip/stat.php?set=0000000x
Set output
Available options x=:
1 – enable
0 – disable
n – invert
- - no changes
Examples of module control using the HTTP GET protocol:
1. Enable relay output:
http://192.168.111.15/stat.php?o
2. Invert output relay state:
http://192.168.111.15/stat.php?
3. Disable relay output:
http://192.168.111.15/stat.php?off=1
User manual Nano Relay Output PoE / Nano Relay Output
Page
25
of
29
[B02a]