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 |
QModbusExceptionResponse() | |
QModbusExceptionResponse(const QModbusPdu &pdu) | |
QModbusExceptionResponse(QModbusPdu::FunctionCode code, QModbusPdu::ExceptionCode ec) | |
void | setExceptionCode(QModbusPdu::ExceptionCode ec) |
virtual void | setFunctionCode(QModbusPdu::FunctionCode c) |
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);
Constructs an invalid QModbusExceptionResponse.
Constructs a copy of pdu.
Constructs a QModbusExceptionResponse with function code set to code and exception error code set to ec.
Sets the response's exception code to ec.
[virtual]
void QModbusExceptionResponse::setFunctionCode(QModbusPdu::FunctionCode c)Reimplemented from QModbusPdu::setFunctionCode().
Sets the response's function code to c.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: