QModbusRtuSerialMaster Class

The QModbusRtuSerialMaster class represents a Modbus client that uses a serial bus for its communication with the Modbus server. More...

Header: #include <QModbusRtuSerialMaster>
qmake: QT += serialbus
Since: Qt 5.6
Inherits: QModbusClient

Public Functions

QModbusRtuSerialMaster(QObject *parent = Q_NULLPTR)

Reimplemented Protected Functions

virtual void close()
virtual bool open()

Additional Inherited Members

Detailed Description

The QModbusRtuSerialMaster class represents a Modbus client that uses a serial bus for its communication with the Modbus server.

Communication via Modbus requires the interaction between a single Modbus client instance and multiple Modbus servers. This class provides the client implementation via a serial port.

Member Function Documentation

QModbusRtuSerialMaster::QModbusRtuSerialMaster(QObject *parent = Q_NULLPTR)

Constructs a serial Modbus master with the specified parent.

[virtual protected] void QModbusRtuSerialMaster::close()

Reimplemented from QModbusDevice::close().

[virtual protected] bool QModbusRtuSerialMaster::open()

Reimplemented from QModbusDevice::open().

Note: When calling this function, existing buffered data is removed from the serial port.