Sur cette page

QModbusTcpClient Class

La classe QModbusTcpClient est la classe d'interface pour les appareils clients Modbus TCP. Plus d'informations...

En-tête : #include <QModbusTcpClient>
CMake : find_package(Qt6 REQUIRED COMPONENTS SerialBus)
target_link_libraries(mytarget PRIVATE Qt6::SerialBus)
qmake : QT += serialbus
Héritages : QModbusClient

Fonctions publiques

QModbusTcpClient(QObject *parent = nullptr)
virtual ~QModbusTcpClient()

Fonctions protégées réimplémentées

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

Description détaillée

QModbusTcpClient communique avec le backend Modbus en fournissant aux utilisateurs une API pratique.

Documentation des fonctions membres

[explicit] QModbusTcpClient::QModbusTcpClient(QObject *parent = nullptr)

Construit un QModbusTcpClient avec l'adresse parent spécifiée.

[virtual noexcept] QModbusTcpClient::~QModbusTcpClient()

Détruit l'instance QModbusTcpClient.

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

Réimplémente : QModbusDevice::close().

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

Réimplémente : QModbusDevice::open().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.