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 .
注意: The returned structure may be invalid depending on the values used during setup.
另请参阅 isValid ().
Sets the manufacturer data of the KNXnet/IP DIB structure to manufacturerData and returns a reference to the builder.
Sets the manufacturer ID of the KNXnet/IP DIB structure to manufacturerId and returns a reference to the builder.