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) |
- 8 public functions inherited from QModbusClient
- 7 public functions inherited from QModbusDevice
- 31 public functions inherited from QObject
Reimplemented Protected Functions
virtual void | close() override |
virtual bool | open() override |
- 2 protected functions inherited from QModbusClient
- 4 protected functions inherited from QModbusDevice
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QModbusClient
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QModbusClient
- 2 signals inherited from QModbusDevice
- 2 signals inherited from QObject
- 11 static public members inherited from QObject
- 2 protected functions inherited from QModbusClient
- 4 protected functions inherited from QModbusDevice
- 9 protected functions inherited from QObject
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