The QKnxNetIpDescriptionRequestProxy::Builder class provides the means to create a KNXnet/IP description request frame. 更多...
QKnxNetIpFrame | create () const |
Builder & | setControlEndpoint (const QKnxNetIpHpai & hpai ) |
After discovering a KNXnet/IP server, the KNXnet/IP client sends a description request through a unicast or point-to-point connection to all control endpoints of the server.
In most programs, this class will not be used directly. Instead, the QKnxNetIpServerDescriptionAgent and QKnxNetIpServerInfo are provided to check that the server supports the requested connection type and options.
The common way to create a a search response is:
auto netIpFrame = QKnxNetIpDescriptionRequestProxy::builder() .setControlEndpoint(QKnxNetIpHpaiProxy::builder() .setHostAddress(QHostAddress::LocalHost) .setPort(3671).create()) .create();
Creates and returns a KNXnet/IP description request frame.
注意: The returned frame may be invalid depending on the values used during setup.
另请参阅 isValid ().
Sets the control endpoint of the KNXnet/IP client to hpai and returns a reference to the builder.