DAEnetIP3
User Manual
-
71
-
17.5.
HTTP API commands
This communication way is preferred very often because it is easy to be used for
integration.
Figure 62.
Communication with HTTP API commands
Bellow are shown example commands. Please note that there is HTTP API
password (by default it is admin) to prevent unauthorized access:
Example commands:
send: http://your.ip.address/command.html?
P=admin&ASG=?&
(get the whole
PortA status of DAEnetIP3)
receive: <!DOCTYPE html><html><body>
ASG=FFFF;
</body></html>
send:http://your.ip.address/command.html?
P=admin&ASG=?&BVG=?&CV0=?&
(send several commands at a time)
receive:
<!DOCTYPE
html><html><body>
ASG=FFFF;BVG=0F;CV0=12;
</body></html> (the answers are ordered in the same
way of requests)
Please note that:
Each HTTP request must end with '&' symbol;
There is limitation of the total parameters length (including password): no
more than 245 symbols.
The answer is returned in HTML file in the
body
section
From web HTTP API password can be adjusted in the following way:
Web: Admin -> HTTP API password