Uses of Class
org.openhab.core.io.transport.modbus.ModbusRegisterArray
Packages that use ModbusRegisterArray
-
Uses of ModbusRegisterArray in org.openhab.core.io.transport.modbus
Methods in org.openhab.core.io.transport.modbus that return ModbusRegisterArrayModifier and TypeMethodDescriptionstatic ModbusRegisterArrayModbusBitUtilities.commandToRegisters(Command command, ModbusConstants.ValueType type) Convert command to array of registers using a specific value typeModbusWriteRegisterRequestBlueprint.getRegisters()Methods in org.openhab.core.io.transport.modbus that return types with arguments of type ModbusRegisterArrayModifier and TypeMethodDescriptionAsyncModbusReadResult.getRegisters()Get "input register" or "holding register" data in the case of no errorsMethods in org.openhab.core.io.transport.modbus with parameters of type ModbusRegisterArrayModifier 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, etcstatic StringModbusBitUtilities.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 ValueBufferValueBuffer.wrap(ModbusRegisterArray array) Wrap modbus registers and create a new instance of ValueBuffer The instance will have position of 0.Constructors in org.openhab.core.io.transport.modbus with parameters of type ModbusRegisterArrayModifierConstructorDescriptionAsyncModbusReadResult(ModbusReadRequestBlueprint request, ModbusRegisterArray registers) ModbusWriteRegisterRequestBlueprint(int slaveId, int reference, ModbusRegisterArray registers, boolean writeMultiple, int maxTries) Construct coil write request with many bits of data