The QKnxNetIpKnxAddressesDibProxy::Builder class creates a KNXnet/IP addresses DIB structure. 更多...
QKnxNetIpDib | create () const |
Builder & | setIndividualAddresses (const QVector<QKnxAddress> & addresses ) |
A KNXnet/IP addresses DIB structure contains the assigned individual addresses of a KNXnet/IP device.
The common way to create such a DIB structure is:
auto dib = QKnxNetIpKnxAddressesDibProxy::builder() .setIndividualAddresses({ { QKnxAddress::Type::Individual, 1976 }, { QKnxAddress::Type::Individual, 1978 }, { QKnxAddress::Type::Individual, 2002 }, { QKnxAddress::Type::Individual, 2013 } }).create();
Creates and returns a generic QKnxNetIpDib containing the individual addresses of the KNXnet/IP device.
注意: The returned structure may be invalid depending on the values used during setup.
另请参阅 isValid ().
Sets the individual addresses of the KNXnet/IP DIB structure to addresses and returns a reference to the builder.