Builder Class
class QKnxNetIpManufacturerDibProxy::BuilderThe 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.