Builder Class

class QKnxNetIpManufacturerDibProxy::Builder

The QKnxNetIpManufacturerDibProxy::Builder class creates a KNXnet/IP manufacturer DIB structure. More...

Public Functions

QKnxNetIpDib create() const
Builder &setManufacturerData(const QKnxByteArray &manufacturerData)
Builder &setManufacturerId(quint16 manufacturerId)

Detailed Description

A KNXnet/IP manufacturer DIB structure contains the device manufacturer unique ID to clearly identify the device producer. It may also contain additional manufacturer specific data.

The common way to create such a DIB structure is:

quint16 dummyManufacturerId = 1000;
constexpr quint8 data[] = "Some additional manufacturer data.";

auto dib = QKnxNetIpManufacturerDibProxy::builder()
    .setManufacturerId(dummyManufacturerId)
    .setManufacturerData({ data, sizeof(data) })
    .create();

Member Function Documentation

QKnxNetIpDib Builder::create() const

Creates and returns a QKnxNetIpDib.

Note: The returned structure may be invalid depending on the values used during setup.

See also isValid().

Builder &Builder::setManufacturerData(const QKnxByteArray &manufacturerData)

Sets the manufacturer data of the KNXnet/IP DIB structure to manufacturerData and returns a reference to the builder.

Builder &Builder::setManufacturerId(quint16 manufacturerId)

Sets the manufacturer ID of the KNXnet/IP DIB structure to manufacturerId and returns a reference to the builder.

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