TcpConnector class
MODBUS TCP Connector Simple protocol details: https://ipc2u.ru/articles/prostye-resheniya/modbus-tcp/
- Inheritance
-
- Object
- ModbusConnector
- TcpConnector
Constructors
- TcpConnector(dynamic _address, int _port, ModbusMode _mode, {Duration? timeout})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- log → Logger
-
final
- onClose ↔ CloseCallback?
-
This should be called by the Connector implementation after closing connection (socket close, etc)
getter/setter pairinherited
- onError ↔ ErrorCallback?
-
This should be called by the Connector implementation when any error occurs
getter/setter pairinherited
- onResponse ↔ FunctionCallback
-
This should be called by the Connector implementation when response comes from the device
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tcpBuffer
↔ List<
int> -
getter/setter pair
- timeout → Duration?
-
final
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setUnitId(
int unitId) → void -
Set unit ID
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
int function, Uint8List data) → void -
Write function with data over connector. Will be called from the
ModbusClientImpl
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited