Class DiscreteValue

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String toSingleValueString()
      String toString()
      • 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

      • DiscreteValue

        DiscreteValue(Address address)
    • Method Detail

      • toSingleValueString

         String toSingleValueString()
        Returns:

        The current value as a 1 character String ("0"=false, "1"=true, "x"=Soft read error, "X"=Hard read error, "-" in case of no value available yet).