Class: ModBus::TCPClient

Inherits:
Client
  • Object
show all
Includes:
TCP
Defined in:
lib/rmodbus/tcp_client.rb

Overview

TCP client implementation

Examples:

TCPClient.connect('127.0.0.1', 502) do |cl|
  cl.with_slave(uid) do |slave|
    slave.holding_registers[0..100]
  end
end

See Also:

Instance Attribute Summary

Attributes included from TCP

#ipaddr, #port

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

Method Summary

Methods included from TCP

#open_tcp_connection

Methods inherited from Client

#close, #closed?, #initialize, #with_slave

Constructor Details

This class inherits a constructor from ModBus::Client