Package nl.basjes.modbus.device.api
Class RegisterValue
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class RegisterValue extends ModbusValue<RegisterValue, Short>
Holds the single value of a single modbus register
-
-
Constructor Summary
Constructors Constructor Description RegisterValue(Address address)
-
Method Summary
Modifier and Type Method Description StringtoSingleValueString()StringtoString()-
Methods inherited from class nl.basjes.modbus.device.api.ModbusValue
clear, clearSoftReadError, clone, compareTo, equals, getAddress, getAsString, getComment, getFetchGroup, getHardReadError, getImmutable, getTimestamp, getValue, hasValue, hashCode, isReadError, needsToBeUpdated, setComment, setFetchGroup, setHardReadError, setHardReadError, setImmutable, setSoftReadError, setValue, setValue, setValue -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RegisterValue
RegisterValue(Address address)
-
-
Method Detail
-
toSingleValueString
String toSingleValueString()
- Returns:
The current register value as a 4 digit HEX string in uppercase. Or "----" in case of null.
-
-
-
-