QKnxNetIpDeviceManagement Class

The QKnxNetIpDeviceManagement class enables the opening and handling of a device management connection from a KNXnet/IP client to a KNXnet/IP server. More...

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

Public Functions

QKnxNetIpDeviceManagement(const QHostAddress &localAddress, quint16 localPort, QObject *parent = nullptr)
QKnxNetIpDeviceManagement(const QHostAddress &localAddress, QObject *parent = nullptr)
QKnxNetIpDeviceManagement(QObject *parent = nullptr)
bool sendFrame(const QKnxDeviceManagementFrame &frame)


void frameReceived(QKnxDeviceManagementFrame frame)

Detailed Description

A device management connection is established from a KNXnet/IP client to a KNXnet/IP server endpoint to access management functionalities on the server. The IP address of the client must be set. The client uses the connection to send device configuration request frames to the server.

The following code sample illustrates how to connect to the server, request a data connection, and use the connection:

QKnxNetIpDeviceManagement connection;
QHostAddress clientLocalAddress = ...

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

QKnxDeviceManagementFrame frame = ...

See also QKnxDeviceManagementFrame, Qt KNX Device Management Classes, and Qt KNXnet/IP Connection Classes.

Member Function Documentation

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

Creates a device management connection with the KNXnet/IP client address localAddress, port number localPort, and parent parent.

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

Creates a device management connection with the KNXnet/IP client address localAddress and parent parent.

QKnxNetIpDeviceManagement::QKnxNetIpDeviceManagement(QObject *parent = nullptr)

Creates a device management connection with the parent parent.

[signal] void QKnxNetIpDeviceManagement::frameReceived(QKnxDeviceManagementFrame frame)

This signal is emitted when the KNXnet/IP client receives data (with the link layer frame frame as payload) from the KNXnet/IP server.

bool QKnxNetIpDeviceManagement::sendFrame(const QKnxDeviceManagementFrame &frame)

Inserts the device management frame frame into a request that is sent to a KNXnet/IP server.

If no connection is currently established, returns false and does not send the frame.

See also QKnxNetIpEndpointConnection::State.

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