ModbusClient class

MODBUS client

Constructors

ModbusClient()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() → Future<void>
connect() → Future<void>
executeFunction(int function, [Uint8List data]) → Future<Uint8List>
Execute custom modbus function
readCoils(int address, int amount) → Future<List<bool>>
Read coils, function 0x01
readDiscreteInputs(int address, int amount) → Future<List<bool>>
Read discrete inputs, function 0x02
readExceptionStatus() → Future<int>
Read exception status, function 0x07
readHoldingRegisters(int address, int amount) → Future<Uint16List>
Read holding registers, function 0x03
readInputRegisters(int address, int amount) → Future<Uint16List>
Read input registers, function 0x04
reportSlaveId() → Future<Uint8List>
Report slave ID, function 0x11
writeMultipleCoils(int address, List<bool> values) → Future<void>
Read multiply coils, function 0x0f
writeMultipleRegisters(int address, Uint16List values) → Future<void>
Read multiply registers, function 0x10
writeSingleCoil(int address, bool to_write) → Future<bool>
Read single coil, function 0x05
writeSingleRegister(int address, int value) → Future<int>
Read single register, function 0x06
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