ModbusRequest class abstract
The base Modbus request
For each Modbus request, a PDU response function code + 0x80 means the request has an exception. The ModbusResponseCode defines possible modbus Exception.
Exception response PDU
BYTE - Function Code + 0x80 BYTE - Exception Code
Constructors
- ModbusRequest({int? unitId, Duration? responseTimeout, ModbusEndianness endianness = ModbusEndianness.ABCD})
Properties
- endianness ↔ ModbusEndianness
-
getter/setter pair
- functionCode → FunctionCode
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- protocolDataUnit → Uint8List
-
no setter
-
responseCode
→ Future<
ModbusResponseCode> -
no setter
- responsePduLength → int
-
no setter
- responseTimeout → Duration?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unitId → int?
-
final
Methods
-
internalSetFromPduResponse(
Uint8List pdu) → ModbusResponseCode -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
setFromPduResponse(
Uint8List pdu) → void -
setResponseCode(
ModbusResponseCode code) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited