MacAddress ClassClass MacAddress is declared in class QKnxNetIpSrpProxy.
This class was introduced in Qt 5.12.
|MacAddress(const MacAddress &other)|
|MacAddress &||operator=(const MacAddress &other)|
|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.
Note: By default the mandatory flag is set to
The common way to create this SRP is:
auto macAddress = QKnxByteArray::fromHex("4CCC6AE40000"); auto srpMac = QKnxNetIpSrpProxy::macAddressBuilder() .setMac(macAddress) .create();
See also QKnxNetIpSearchRequestProxy.
Member Function Documentation
MacAddress::MacAddress(const MacAddress &other)
Constructs a copy of other.
Constructs a builder for a Select By MAC Address SRP.
MacAddress &MacAddress::operator=(const MacAddress &other)
Assigns other to this MAC Address builder and returns a reference.
Destroys the object and frees any allocated resources.
QKnxNetIpSrp MacAddress::create() const
Creates a Select By MAC Address SRP.
MacAddress &MacAddress::setMac(const QKnxByteArray &macAdd)
Sets the MAC address macAdd to be used by the builder.
MacAddress &MacAddress::setMandatory(bool value)
Sets the mandatory flag bit to value.
Note: The mandatory bit is the first significant bit of the Type Code field.
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.