The QKnxNetIpSrpProxy::MacAddress class provides the means to create the Select By MAC Address SRP for the extended search request. 更多...
该类在 Qt 5.12 引入。
MacAddress (const MacAddress & other ) | |
MacAddress () | |
MacAddress & | operator= (const MacAddress & other ) |
~MacAddress () | |
QKnxNetIpSrp | create () const |
MacAddress & | setMac (const QKnxByteArray & macAdd ) |
MacAddress & | setMandatory (bool value ) |
The client includes this SRP to indicate that it is interested only in the response from the KNXnet/IP server with the given MAC address. If the KNXnet/IP server’s MAC address is different from the given MAC address, then it does not respond to this search request.
注意:
By default the mandatory flag is set to
true
.
The common way to create this SRP is:
auto macAddress = QKnxByteArray::fromHex("4CCC6AE40000"); auto srpMac = QKnxNetIpSrpProxy::macAddressBuilder() .setMac(macAddress) .create();
另请参阅 QKnxNetIpSearchRequestProxy .
构造副本为 other .
Constructs a builder for a Select By MAC Address SRP.
赋值 other to this MAC Address builder and returns a reference.
销毁对象并释放任何分配资源。
Creates a Select By MAC Address SRP.
Sets the MAC address macAdd to be used by the builder.
Sets the mandatory flag bit to value .
注意: The mandatory bit is the first significant bit of the Type Code field.