Class AsyncModbusReadResult
java.lang.Object
org.openhab.core.io.transport.modbus.AsyncModbusReadResult
Encapsulates result of modbus read operations
- Author:
- Sami Salonen - Initial contribution
-
Constructor Summary
ConstructorDescriptionAsyncModbusReadResult
(ModbusReadRequestBlueprint request, BitArray bits) AsyncModbusReadResult
(ModbusReadRequestBlueprint request, ModbusRegisterArray registers) -
Method Summary
-
Constructor Details
-
AsyncModbusReadResult
-
AsyncModbusReadResult
-
-
Method Details
-
getRequest
Get request matching this response- Returns:
- request object
-
getBits
Get "coil" or "discrete input" bit data in the case of no errors- Returns:
- bit data
-
getRegisters
Get "input register" or "holding register" data in the case of no errors- Returns:
- register data
-
toString
-