Builder Class

class QKnxNetIpManufacturerDibProxy ::Builder

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

公共函数

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

详细描述

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();
					

成员函数文档编制

QKnxNetIpDib Builder:: create () const

创建并返回 QKnxNetIpDib .

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

另请参阅 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.