ModbusEpochRegister class

This Uint32 register type converts the device epoch value into a DateTime.

Inheritance

Constructors

ModbusEpochRegister({required String name, required int address, required ModbusElementType type, String description = "", dynamic onUpdate(ModbusElement self)?, bool isUtc = false})

Properties

address int
getter/setter pairinherited
byteCount int
finalinherited
description String
finalinherited
endianness ModbusEndianness
getter/setter pairinherited
epochType ModbusEpochType
final
hashCode int
The hash code for this object.
no setterinherited
isUtc bool
final
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 DateTime?
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
Gets a write request from this register element. value is set to the element once request is successfully completed. If rawValue is true then the integer value is written as it is without any value or type conversion.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValueFromBytes(Uint8List rawValues) DateTime?
override
toString() String
A string representation of this object.
inherited

Operators

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