public abstract class ModbusResponse extends ModbusMessageImpl
| Constructor and Description |
|---|
ModbusResponse() |
| Modifier and Type | Method and Description |
|---|---|
static ModbusResponse |
createModbusResponse(int functionCode)
Factory method creating the required specialized ModbusResponse
instance.
|
protected void |
setMessage(byte[] msg)
Utility method to set the raw data of the message.
|
getDataLength, getFunctionCode, getHexMessage, getOutputLength, getProtocolID, getTransactionID, getUnitID, isHeadless, readData, readFrom, setDataLength, setFunctionCode, setHeadless, setHeadless, setProtocolID, setTransactionID, setUnitID, writeData, writeToprotected void setMessage(byte[] msg)
msg - the byte[] resembling the raw modbus response message.public static ModbusResponse createModbusResponse(int functionCode)
functionCode - the function code of the response as int.Copyright © 2017. All rights reserved.