Class DiscreteBlock

    • 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
      final List<String> toBitList() Creating a list of hex values for all available values.
      final String toBitString() Creating a single string of hex values for all available values.
      String asString()
      String toString()
      • Methods inherited from class nl.basjes.modbus.device.api.ModbusBlock

        asString, clear, clone, equals, get, get, getAddressClass, getFirstAddress, getKeys, getOrCreateIfAbsent, getSize, getValue, getValues, hashCode, merge, noGapsValuesList, put, put, set, setReadError, setValue, setValue, toMultiLineString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • toBitList

         final List<String> toBitList()

        Creating a list of hex values for all available values. Any MISSING registers will be filled with "----" So all values are 4 characters: (0-9A-F0-9A-F|----)

        Returns:

        List of hex values

      • toBitString

         final String toBitString()

        Creating a single string of hex values for all available values. Any MISSING registers will be filled with "----". So all values are 4 characters: (0-9A-F0-9A-F|----)

        Returns:

        A String of mostly 4 char hex values, sometimes "----".