class ModBus::RTUViaTCPSlave
RTU
over TCP
slave implementation @example
RTUViaTCP.connect('127.0.0.1', 10002) do |cl| cl.with_slave(uid) do |slave| slave.holding_registers[0..100] end end
@see RTUViaTCPClient#open_connection
@see Client#with_slave
@see Slave
Private Instance Methods
read_pdu()
click to toggle source
overide method for RTU
implamentaion @see Slave#query
# File lib/rmodbus/rtu_via_tcp_slave.rb, line 25 def read_pdu read_rtu_pdu end
send_pdu(pdu)
click to toggle source
overide method for RTU
implamentaion @see Slave#query
# File lib/rmodbus/rtu_via_tcp_slave.rb, line 19 def send_pdu(pdu) send_rtu_pdu(pdu) end