QKnxTunnelFrame Class

The QKnxTunnelFrame is a CEMI frame meant to be sent via a QKnxNetIpTunnelConnection between a client and a KNXnet/IP server. More...

Header: #include <QKnxTunnelFrame>
qmake: QT += knx
Inherits: QKnxCemiFrame

Public Functions

QKnxTunnelFrame() = default
QKnxTunnelFrame(QKnxTunnelFrame::MessageCode messageCode)
~QKnxTunnelFrame() override = default
void addAdditionalInfo(const QKnxAdditionalInfo &info)
quint8 additionalInfosSize() const
QKnxControlField controlField() const
QKnxExtendedControlField extendedControlField() const
void setControlField(const QKnxControlField &field)
void setExtendedControlField(const QKnxExtendedControlField &field)

Reimplemented Public Functions

virtual bool isValid() const override

Additional Inherited Members

Detailed Description

The QKnxTunnelFrame is a CEMI frame meant to be sent via a QKnxNetIpTunnelConnection between a client and a KNXnet/IP server.

Following the KNXnet/IP tunneling specifications, only the QKnxCemiFrame::MessageCode listed below are valid QKnxTunnelFrame message code to be sent via KNXnet/IP tunnel connection:

For the moment, the QtKnx module is only implementing KNXnet/IP tunnel connection, so only the previously mentioned message code should be used.

The message code is also to be chosen depending on the application service (encoded with the QKnxNpdu::ApplicationControlField) hold in the QKnxNpdu. In the QKnxNpduFactory, the application services are split into categories depending on the addressing method.

The most basic functionalities are to be addressed with set of services built in QKnxNpduFactory::Multicast. For those services one should use DataRequest (L_Data.req), DataConfirmation (L_Data.con) or DataIndication (L_Data.ind) as QKnxTunnelFrame message code.

Member Function Documentation

[default] QKnxTunnelFrame::QKnxTunnelFrame()

Default constructs an instance of QKnxTunnelFrame.

QKnxTunnelFrame::QKnxTunnelFrame(QKnxTunnelFrame::MessageCode messageCode)

Default constructs an instance of QKnxTunnelFrame.

[default] QKnxTunnelFrame::~QKnxTunnelFrame()

Destroys the instance of QKnxTunnelFrame.

void QKnxTunnelFrame::addAdditionalInfo(const QKnxAdditionalInfo &info)

quint8 QKnxTunnelFrame::additionalInfosSize() const

QKnxControlField QKnxTunnelFrame::controlField() const

See also setControlField().

QKnxExtendedControlField QKnxTunnelFrame::extendedControlField() const

See also setExtendedControlField().

[override virtual] bool QKnxTunnelFrame::isValid() const

Reimplemented from QKnxCemiFrame::isValid().

Returns true if the message code is valid.

Note: This function needs to be extended.

void QKnxTunnelFrame::setControlField(const QKnxControlField &field)

See also controlField().

void QKnxTunnelFrame::setExtendedControlField(const QKnxExtendedControlField &field)

See also extendedControlField().

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