QKnxNetIpDeviceManagementConnection Class

The QKnxNetIpDeviceManagementConnection class enables the opening and handling of a client connection to a KNXnet/IP server. More...

Header: #include <QKnxNetIpDeviceManagementConnection>
qmake: QT += knx
Inherits: QKnxNetIpEndpointConnection

Public Functions

QKnxNetIpDeviceManagementConnection(QObject *parent = nullptr)
QKnxNetIpDeviceManagementConnection(const QHostAddress &localAddress, QObject *parent = nullptr)
QKnxNetIpDeviceManagementConnection(const QHostAddress &localAddress, quint16 localPort, QObject *parent = nullptr)
~QKnxNetIpDeviceManagementConnection() override = default
bool sendDeviceManagementFrame(const QKnxLocalDeviceManagementFrame &frame)

Signals

void receivedDeviceManagementFrame(QKnxLocalDeviceManagementFrame frame)

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QKnxNetIpDeviceManagementConnection class enables the opening and handling of a client connection to a KNXnet/IP server.

The QKnxNetIpDeviceManagementConnection is a data connection between a client and a KNXnet/IP server endpoint. This is used by the client side to access management functionalities on the KNXnet/IP server. The IP address of the client must be set. It is then possible to connect to a chosen

KNXnet/IP server and to send QKnxLocalDeviceManagementFrame frames to the KNXnet/IP server.

The class takes care of connecting to the server, asking for a data connection, and monitoring the connection.

QKnxNetIpDeviceManagementConnection connection;
QHostAddress clientLocalAddress = ...
connection.setLocalAddress(clientLocalAddress);

QHostAddress knxNetIpServerAddress = ...
quint16 knxNetIpServerDataEndPointPort = ...
connection.connectToHost(knxNetIpServerAddress, knxNetIpServerDataEndPointPort);

QKnxLocalDeviceManagementFrame frame = ...
connection.sendTunnelFrame(frame);

Member Function Documentation

QKnxNetIpDeviceManagementConnection::QKnxNetIpDeviceManagementConnection(QObject *parent = nullptr)

Default constructs an instance of QKnxNetIpDeviceManagementConnection.

QKnxNetIpDeviceManagementConnection::QKnxNetIpDeviceManagementConnection(const QHostAddress &localAddress, QObject *parent = nullptr)

Default constructs an instance of QKnxNetIpDeviceManagementConnection.

QKnxNetIpDeviceManagementConnection::QKnxNetIpDeviceManagementConnection(const QHostAddress &localAddress, quint16 localPort, QObject *parent = nullptr)

Default constructs an instance of QKnxNetIpDeviceManagementConnection.

[default] QKnxNetIpDeviceManagementConnection::~QKnxNetIpDeviceManagementConnection()

Destroys the instance of QKnxNetIpDeviceManagementConnection.

[signal] void QKnxNetIpDeviceManagementConnection::receivedDeviceManagementFrame(QKnxLocalDeviceManagementFrame frame)

bool QKnxNetIpDeviceManagementConnection::sendDeviceManagementFrame(const QKnxLocalDeviceManagementFrame &frame)

© 2017 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.