|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ModbusMessage
Interface defining a Modbus Message.
| Method Summary | |
|---|---|
int |
getDataLength()
Returns the length of the data appended after the protocol header. |
int |
getFunctionCode()
Returns the function code of this ModbusMessage as int. The function code is a 1-byte non negative integer value valid in the range of 0-127. Function codes are ordered in conformance classes their values are specified in net.wimpi.modbus.Modbus. |
String |
getHexMessage()
Returns the raw message as String containing a hexadecimal series of bytes. |
int |
getProtocolID()
Returns the protocol identifier of this ModbusMessage as int. The identifier is a 2-byte (short) non negative integer value valid in the range of 0-65535. |
int |
getTransactionID()
Returns the transaction identifier of this ModbusMessage as int. The identifier is a 2-byte (short) non negative integer value valid in the range of 0-65535. |
int |
getUnitID()
Returns the unit identifier of this ModbusMessage as int. The identifier is a 1-byte non negative integer value valid in the range of 0-255. |
void |
setHeadless()
Sets the flag that marks this ModbusMessage as headless (for serial transport). |
| Methods inherited from interface net.wimpi.modbus.io.Transportable |
|---|
getOutputLength, readFrom, writeTo |
| Method Detail |
|---|
void setHeadless()
int getTransactionID()
int getProtocolID()
int getDataLength()
int getUnitID()
int getFunctionCode()
ModbusString getHexMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||