Class StringWordElement

    • Field Detail

      • byteOrder

        protected java.nio.ByteOrder byteOrder
    • Constructor Detail

      • StringWordElement

        public StringWordElement​(int startAddress,
                                 int length)
    • Method Detail

      • getLength

        public final int getLength()
        Description copied from interface: ModbusElement
        Number of Registers or Coils.
        the number of Registers or Coils
      • _setNextWriteValue

        public void _setNextWriteValue​(java.util.Optional<java.lang.String> valueOpt)
                                throws OpenemsException
        Description copied from interface: ModbusElement
        Sets a value that should be written to the Modbus device.
        valueOpt - the Optional value
        OpenemsException - on error
      • fromByteBuffer

        protected java.lang.String fromByteBuffer​(java.nio.ByteBuffer buff)
      • toByteBuffer

        protected java.nio.ByteBuffer toByteBuffer​(java.nio.ByteBuffer buff,
                                                   java.lang.String value)