public final class WriteMultipleRegistersResponse extends ModbusResponse
| Constructor and Description |
|---|
WriteMultipleRegistersResponse()
Constructs a new WriteMultipleRegistersResponse
instance.
|
WriteMultipleRegistersResponse(int reference,
int wordcount)
Constructs a new WriteMultipleRegistersResponse
instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getByteCount()
Returns the number of bytes that have been written.
|
int |
getReference()
Returns the reference of the register to start
writing to with this
WriteMultipleRegistersResponse.
|
int |
getWordCount()
Returns the number of words that have been read.
|
void |
readData(DataInput din)
Reads the subclass specific data from the given DataInput instance.
|
void |
writeData(DataOutput dout)
Writes the subclass specific data to the given DataOutput.
|
createModbusResponse, setMessagegetDataLength, getFunctionCode, getHexMessage, getOutputLength, getProtocolID, getTransactionID, getUnitID, isHeadless, readFrom, setDataLength, setFunctionCode, setHeadless, setHeadless, setProtocolID, setTransactionID, setUnitID, writeTopublic WriteMultipleRegistersResponse()
public WriteMultipleRegistersResponse(int reference,
int wordcount)
reference - the offset to start reading from.wordcount - the number of words (registers) to be read.public int getReference()
public int getByteCount()
public int getWordCount()
public void writeData(DataOutput dout) throws IOException
ModbusMessageImplwriteData in class ModbusMessageImpldout - the DataOutput to be written to.IOException - if an I/O related error occurs.public void readData(DataInput din) throws IOException
ModbusMessageImplreadData in class ModbusMessageImpldin - the DataInput to read from.IOException - if an I/O related error occurs.Copyright © 2017. All rights reserved.