DiscreteTypeConverter<T> class abstract

Type converter that only supports reading / writing to Modbus registers with 1-bit discrete sizes, namely coils and discrete input.

Inheritance
Implementers

Constructors

DiscreteTypeConverter()
const
DiscreteTypeConverter.from({required ReadCallback<T, List<bool?>> readCallback, WriteCallback<T, bool, List<bool>>? writeCallback})
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRead(Type type, Register registerType, int address) bool
override
canWrite(Type type, int address) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(RawReadCallback<List<bool?>> readRaw) Future<T>
readFromClient(ModbusClient client, Register registerType, int address) Future<T>
override
toString() String
A string representation of this object.
inherited
write(T value, RawWriteCallback<bool> writeSingle, RawWriteCallback<List<bool>> writeMultiple) Future<void>
writeToClient(ModbusClient client, int address, T value) Future<void>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited