modbus library

Classes

ModbusClient
MODBUS client
ModbusConnector
MODBUS Connector.
ModbusExceptionCodes
ModbusFunctions
TcpConnector
MODBUS TCP Connector Simple protocol details: https://ipc2u.ru/articles/prostye-resheniya/modbus-tcp/

Functions

createClient(TcpConnector connector, {int unitId = 1}) ModbusClient
createTcpClient(dynamic address, {int port = 502, ModbusMode mode = ModbusMode.rtu, int unitId = 1}) ModbusClient

Enums

ModbusMode

Typedefs

CloseCallback = void Function()
ErrorCallback = void Function(dynamic error, dynamic stackTrace)
FunctionCallback = void Function(int function, Uint8List data)

Exceptions / Errors

ModbusAcknowledgeException
Acknowledge Throw when modbus server return error response function 0x05
ModbusAmountException
Amount Exception Throw when the address or amount input is mismatching.
ModbusBufferException
Buffer Exception Throw when buffer is too small for the data to be stored.
ModbusConnectException
Connection Issue Throw when a connection issues happens between modbus client and server
ModbusException
MODBUS Exception Super Class Throw when a exception or errors happens in modbus protocol
ModbusGatewayProblemException
Gateway Problem Throw when modbus server return error response function 0x0A and 0x0B
ModbusIllegalAddressException
Illegal Address Throw when modbus server return error response function 0x02
ModbusIllegalDataValueException
Illegal Data Value Throw when modbus server return error response function 0x03
ModbusIllegalFunctionException
Illegal Function Throw when modbus server return error response function 0x01
ModbusServerBusyException
Server Busy Throw when modbus server return error response function 0x06
ModbusServerFailureException
Server Failure Throw when modbus server return error response function 0x04