TcpConnector class

MODBUS TCP Connector Simple protocol details: https://ipc2u.ru/articles/prostye-resheniya/modbus-tcp/

Inheritance

Constructors

TcpConnector(dynamic _address, int _port, ModbusMode _mode)

Properties

log Logger
final
hashCode → int
The hash code for this object.
read-only, inherited
onClose CloseCallback
This should be called by the Connector implementation after closing connection (socket close, etc)
read / write, inherited
onError ErrorCallback
This should be called by the Connector implementation when any error occurs
read / write, inherited
onResponse FunctionCallback
This should be called by the Connector implementation when response comes from the device
read / write, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() → Future<void>
Will be called from the ModbusClientImpl
override
connect() → Future<void>
Connect will be called from the ModbusClient to establish connection
override
write(int function, Uint8List data) → void
Write function with data over connector. Will be called from the ModbusClientImpl
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited