DAEnetIP2 v2
User Manual
21 Apr 2020
- 26 -
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:[email protected]/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:[email protected]/iochange.cgi?ref=re-io&01=00&02=FF
8.2. Retrieve the P3/P5/P6 i/o status
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
Содержание DAEnetIP2 v2
Страница 6: ...DAEnetIP2 v2 User Manual 21 Apr 2020 6 3 3 Watchdog function Figure 3 3 Example 3...
Страница 49: ...DAEnetIP2 v2 User Manual 21 Apr 2020 49 14 4 2 Node RED Figure 14 5 Node RED...
Страница 55: ...DAEnetIP2 v2 User Manual 21 Apr 2020 55 18 Appendix 12 Mechanical drawing Figure 17 4 Mechanical drawing...