Class: ModBus::TCPSlave
- Inherits:
-
Client::Slave
- Object
- Client::Slave
- ModBus::TCPSlave
- Defined in:
- lib/rmodbus/tcp_slave.rb
Overview
TCP slave implementation
Constant Summary
Constants inherited from Client::Slave
Instance Attribute Summary collapse
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
Attributes inherited from Client::Slave
Attributes included from Options
#raise_exception_on_mismatch, #read_retries, #read_retry_timeout
Attributes included from Debug
#logger, #raise_exception_on_mismatch, #read_retries, #read_retry_timeout
Instance Method Summary collapse
-
#initialize(uid, io) ⇒ TCPSlave
constructor
A new instance of TCPSlave.
Methods inherited from Client::Slave
#coils, #discrete_inputs, #holding_registers, #input_registers, #mask_write_register, #query, #read_coil, #read_coils, #read_discrete_input, #read_discrete_inputs, #read_holding_register, #read_holding_registers, #read_input_register, #read_input_registers, #read_write_multiple_registers, #write_multiple_coils, #write_multiple_registers, #write_single_coil, #write_single_register
Constructor Details
#initialize(uid, io) ⇒ TCPSlave
Returns a new instance of TCPSlave.
19 20 21 22 |
# File 'lib/rmodbus/tcp_slave.rb', line 19 def initialize(uid, io) @transaction = 0 super end |
Instance Attribute Details
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction.
16 17 18 |
# File 'lib/rmodbus/tcp_slave.rb', line 16 def transaction @transaction end |