The QKnxNetIpTunnelingFeatureGetProxy::Builder class provides the means to create a KNXnet/IP tunneling feature get service frame. 更多...
Builder (const Builder & other ) | |
Builder () | |
Builder & | operator= (const Builder & other ) |
~Builder () | |
QKnxNetIpFrame | create () const |
Builder & | setChannelId (quint8 channelId ) |
Builder & | setFeatureIdentifier (QKnx::InterfaceFeature id ) |
Builder & | setSequenceNumber (quint8 sequenceNumber ) |
A tunneling feature-get service frame contains the ID of the communication channel between a KNXnet/IP client and server, the sequence number of the frame, and the interface feature to read.
The tunneling client initiates the tunneling feature-get service to read the value of an interface feature from the tunneling server. Within 3 seconds after confirming the tunneling feature-get service the tunneling server sends a tunneling feature-response frame containing the value of the requested interface feature.
If the tunneling server does not respond to the tunneling feature-get service frame the tunneling client may or may not repeat the request.
The common way to create a tunneling feature-get service frame is:
auto frame = QKnxNetIpTunnelingFeatureGetProxy::builder() .setChannelId(15) .setSequenceNumber(10) .setFeatureIdentifier(QKnx::InterfaceFeature::IndividualAddress) .create();
构造副本为 other .
Creates a new empty tunneling feature-get service frame builder object.
赋值指定 other 到此对象。
销毁对象并释放任何分配资源。
Creates and returns a KNXnet/IP tunneling feature-get service frame.
注意: The returned frame may be invalid depending on the values used during setup.
另请参阅 isValid ().
Sets the ID of the communication channel between a KNXnet/IP client and server to channelId and returns a reference to the builder.
Sets the interface feature identifier of a tunneling feature-get service frame to id and returns a reference to the builder.
什么都不做若 id is not a QKnx::InterfaceFeature .
Sets the sequence number of a tunneling feature-get service frame to sequenceNumber and returns a reference to the builder.