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 = nullptr)

Reimplemented Protected Functions

virtual void close() override
virtual bool open() override

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 = nullptr)

Constructs a serial Modbus master with the specified parent.

[override virtual protected] void QModbusRtuSerialMaster::close()

Reimplemented from QModbusDevice::close().

[override virtual protected] bool QModbusRtuSerialMaster::open()

Reimplemented from QModbusDevice::open().

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

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qmodbusrtuserialmaster.html