ModbusDiscreteInput class
A Modbus ModbusElementType.discreteInput value element.
- Inheritance
-
- Object
- ModbusElement<
bool> - ModbusBitElement
- ModbusDiscreteInput
Constructors
- ModbusDiscreteInput({required String name, String description = "", required int address, 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
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!inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setValueFromBytes(
Uint8List rawValues) → bool? -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited