Uses of Class
org.openhab.core.io.transport.modbus.ModbusRegisterArray
-
Uses of ModbusRegisterArray in org.openhab.core.io.transport.modbus
Modifier and TypeMethodDescriptionstatic ModbusRegisterArray
ModbusBitUtilities.commandToRegisters
(Command command, ModbusConstants.ValueType type) Convert command to array of registers using a specific value typeModbusWriteRegisterRequestBlueprint.getRegisters()
Modifier and TypeMethodDescriptionAsyncModbusReadResult.getRegisters()
Get "input register" or "holding register" data in the case of no errorsModifier and TypeMethodDescriptionstatic Optional<DecimalType>
ModbusBitUtilities.extractStateFromRegisters
(ModbusRegisterArray registers, int index, ModbusConstants.ValueType type) Read data from registers and convert the result to DecimalType Interpretation of index goes as follows depending on type BIT: - a single bit is read from the registers - indices between 0...15 (inclusive) represent bits of the first register - indices between 16...31 (inclusive) represent bits of the second register, etc.static String
ModbusBitUtilities.extractStringFromRegisters
(ModbusRegisterArray registers, int registerIndex, int length, Charset charset) Read data from registers and convert the result to String Strings should start the the first byte of a register, but could have an odd number of characters.static ValueBuffer
ValueBuffer.wrap
(ModbusRegisterArray array) Wrap modbus registers and create a new instance of ValueBuffer The instance will have position of 0.ModifierConstructorDescriptionAsyncModbusReadResult
(ModbusReadRequestBlueprint request, ModbusRegisterArray registers) ModbusWriteRegisterRequestBlueprint
(int slaveId, int reference, ModbusRegisterArray registers, boolean writeMultiple, int maxTries) Construct coil write request with many bits of data