QModbusExceptionResponse Class
QModbusExceptionResponse is a container class containing the function and error code inside a Modbus ADU. More...
| Header: | #include <QModbusExceptionResponse> |
| qmake: | QT += serialbus |
| Since: | Qt 5.8 |
| Inherits: | QModbusResponse |
Public Functions
| QModbusExceptionResponse() | |
| QModbusExceptionResponse(const int &pdu) | |
| QModbusExceptionResponse(int fc, int ec) | |
| void | setExceptionCode(int ec) |
| void | setFunctionCode(int c) |
Detailed Description
QModbusExceptionResponse is a container class containing the function and error code inside a Modbus ADU.
A typical QModbusExceptionResponse response can looks like this:
QModbusExceptionResponse exception(QModbusExceptionResponse::ReportServerId, QModbusExceptionResponse::ServerDeviceFailure);
Member Function Documentation
QModbusExceptionResponse::QModbusExceptionResponse()
Default constructs an instance of QModbusExceptionResponse.
QModbusExceptionResponse::QModbusExceptionResponse(const int &pdu)
Default constructs an instance of QModbusExceptionResponse.
QModbusExceptionResponse::QModbusExceptionResponse(int fc, int ec)
Default constructs an instance of QModbusExceptionResponse.