class

Modbus::Client

Inherits Reference < Object

Constructors

new(io : IO)
Source

Instance methods

read_coils(addr : UInt16, num_coils : UInt16) : BitArray
Source
read_discrete_inputs(addr : UInt16, num_inputs : UInt16) : BitArray
Source
read_holding_registers(addr : UInt16, num_registers : UInt16) : Array(UInt16)
Source
read_input_registers(addr : UInt16, num_registers : UInt16) : Array(UInt16)
Source
write_multiple_registers(addr : UInt16, values : Array(UInt16)) : Array(UInt16)
Source
write_single_coil(addr : UInt16, value : Bool) : Bool
Source
write_single_register(addr : UInt16, value : UInt16) : UInt16
Source