public class ReadMEIResponse extends ModbusResponse
ModbusResponse.AuxiliaryMessageTypes| Constructor and Description |
|---|
ReadMEIResponse()
Constructs a new ReadMEIResponse
instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addField(int id,
String text) |
String |
getField(int index)
Convenience method that returns the field
at the requested index
|
int |
getFieldCount()
Returns the number of fields
read with the request.
|
int |
getFieldId(int index)
Convenience method that returns the field
ID at the given index.
|
String[] |
getFields()
Returns the array of strings that were read
|
byte[] |
getMessage()
Returns the raw message as an array of bytes.
|
void |
readData(DataInput din)
Reads the subclass specific data from the given DataInput instance.
|
void |
setFieldLevel(int level) |
void |
writeData(DataOutput dout)
Writes the subclass specific data to the given DataOutput.
|
createModbusResponse, getAuxiliaryType, setAuxiliaryTypegetDataLength, getFunctionCode, getHexMessage, getOutputLength, getProtocolID, getTransactionID, getUnitID, isHeadless, readFrom, setDataLength, setHeadless, setHeadless, setProtocolID, setTransactionID, setUnitID, writeTopublic ReadMEIResponse()
public int getFieldCount()
public String[] getFields()
public String getField(int index) throws IndexOutOfBoundsException
index - the index of the field which
should be returned.IndexOutOfBoundsException - if the
index is out of boundspublic int getFieldId(int index)
throws IndexOutOfBoundsException
index - the index of the field for which
the ID should be returned.IndexOutOfBoundsException - if the
index is out of boundspublic void setFieldLevel(int level)
public void addField(int id,
String text)
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.public byte[] getMessage()
ModbusMessageCopyright © 2025. All Rights Reserved.