ModbusBitElement class

A Modbus bit value element. This is the base class of ModbusDiscreteInput and ModbusCoil elements.

Inheritance
Implementers

Constructors

ModbusBitElement.new({required String name, String description = "", required int address, required ModbusElementType type, dynamic onUpdate(ModbusElement self)?})

Properties

address int
getter/setter pairinherited
byteCount int
finalinherited
description String
finalinherited
endianness ModbusEndianness
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
onUpdate → dynamic Function(ModbusElement self)?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ModbusElementType
finalinherited
value bool?
getter/setter pairinherited-getteroverride-setter

Methods

getMultipleWriteRequest(Uint8List bytes, {int? unitId, Duration? responseTimeout, ModbusEndianness? endianness}) ModbusWriteRequest
Gets a write request from multiple register elements.
inherited
getReadRequest({int? unitId, Duration? responseTimeout, ModbusEndianness? endianness}) ModbusReadRequest
Gets a read request from this element
inherited
getWriteRequest(dynamic value, {bool rawValue = false, int? unitId, Duration? responseTimeout, ModbusEndianness? endianness}) ModbusWriteRequest
NOTE: rawValue is ignored for bit elements!
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValueFromBytes(Uint8List rawValues) bool?
override
toString() String
A string representation of this object.
inherited

Operators

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