DAEnetIP2 v2 User Manual
21 Apr 2020
8. HTTP API
DAEnetIP2 v2 i/o lines can be controlled/accessed via HTTP API commands and basic access
authentication is required to do that.
8.1. Control the digital outputs P3/P5
http://admin:admin@device.ip.address/iochange.cgi?ref=re-io&01=00&02=FF
admin:admin - the username:password
device.ip.address - the DAEnetIP2 v2 IP address (by default it is 192.168.1.100)
01=00 - the state of P3 DO
02=FF - the state of P5 DO
For example:
http://admin:admin@192.168.1.100/iochange.cgi?ref=re-io&01=00&02=FF
8.2. Retrieve the P3/P5/P6 i/o status
http://admin:admin@device.ip.address/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:admin@192.168.1.100/ioreg.js