public class ReadHoldingRegistersResponse extends AbstractReadResponse
| Constructor and Description |
|---|
ReadHoldingRegistersResponse() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
returns a copy of the raw byte-buffer
|
int |
getFunction() |
ModbusHoldingRegisters |
getHoldingRegisters() |
int[] |
getRegisters()
Deprecated.
|
protected void |
readData(ModbusInputStream fifo) |
void |
setBuffer(int[] registers) |
protected void |
writeData(ModbusOutputStream fifo) |
getByteCount, readResponse, responseSize, setByteCount, writeResponsegetModbusExceptionCode, isException, pduSize, readPDU, setException, setModbusExceptionCode, writePDUgetProtocolId, getServerAddress, getTransactionId, read, setProtocolId, setServerAddress, setTransactionId, size, writepublic final byte[] getBytes()
@Deprecated public final int[] getRegisters()
public final ModbusHoldingRegisters getHoldingRegisters()
public final void setBuffer(int[] registers)
throws ModbusNumberException
ModbusNumberExceptionprotected final void readData(ModbusInputStream fifo) throws IOException
readData in class AbstractReadResponseIOExceptionprotected final void writeData(ModbusOutputStream fifo) throws IOException
writeData in class AbstractReadResponseIOExceptionpublic int getFunction()
getFunction in class ModbusMessageCopyright © 2018. All rights reserved.