DAEnetIP2
User Manual
12 Sep 2013
14.
Appendix 7. HTTP API commands
DAEnetIP2 i/o lines can be controlled/accessed via HTTP API commands and
basic access authentication is required to do that. The controller supports only 2
HTTP API commands: for read and write all the i/o lines.
The digital outputs (P3 and P5) can be controlled by sending this HTTP command:
http://admin:[email protected]/iochange.cgi?ref=re-io&01=00&02=FF
admin:admin are the username:password
device.ip.address is the DAEnetIP2 IP address (by default it is 172.16.100.2)
01=00 is the state of P3 DO
02=FFis the state of P5 DO
For example:
http://admin:[email protected]/iochange.cgi?ref=re-io&01=00&02=FF
The i/o states (P3, P5, P6) can be retreived by sending this HTTP command:
http://admin:[email protected]/ioreg.js
it will be received javascript file with several variables and one of them is:
var IO=new Array
(0xFF,0xFF,0x80,0x00AB,0x0049,0x0118,0x014A,0x012F,0x003E,0x0029,0x01DD)
Bytes 0 and 1 are the digital I/O states (in hex format)
Bytes 3...10 are the Analog inputs values (in hex format)
For example:
http://admin:[email protected]/ioreg.js
-
47
-