denkovi_daenetip2
Ruby gem to control a DENKOVI DaenetIP2 using SNMP commands
To install
gem install denkovi_daenetip2
To use:
irb
require 'denkovi_daenetip2'
=> true
dae = DaenetIP2.new("[daenetip2_IP]",[daenetip2_SNMP_PORT],"[SNMP read-write community string]","[SNMP read-only community string]")
=> true
To read P6:
dae.read(1)
=> 1020
To write P3
dae.write('p3', [RELAY],[VALUE])
dae.write('p3',1,0)
=> true
To write P5
dae.write('p5', [RELAY],[VALUE])
dae.write('p5',1,0)
=> true
To close
dae.close
=> true