Class ModbusRecordUint16

    • Field Detail

      • UNDEFINED_VALUE

        public static final byte[] UNDEFINED_VALUE
      • value

        protected final java.lang.Short value
    • Constructor Detail

      • ModbusRecordUint16

        public ModbusRecordUint16​(int offset,
                                  java.lang.String name,
                                  java.lang.Short value)
    • Method Detail

      • toByteArray

        public static byte[] toByteArray​(short value)
        Convert to byte array.
        Parameters:
        value - the value
        Returns:
        the byte array
      • toByteArray

        public static byte[] toByteArray​(java.lang.Object value)
        Convert to byte array.
        Parameters:
        value - the value
        Returns:
        the byte array
      • getValueDescription

        public java.lang.String getValueDescription()
        Description copied from class: ModbusRecord
        Gets the value description.
        Specified by:
        getValueDescription in class ModbusRecord
        Returns:
        the value description