Builder ClassClass Builder is declared in class QKnxNetIpDeviceConfigurationRequestProxy.
|Builder &||setCemi(const QKnxDeviceManagementFrame &cemi)|
|Builder &||setChannelId(quint8 channelId)|
|Builder &||setSequenceNumber(quint8 sequenceNumber)|
A KNXnet/IP client connects to a configuration and management data endpoint of a KNXnet/IP server to send device configuration request frames and to receive device configuration acknowledgment frames. A device configuration request is used to read and write KNXnet/IP device configuration data. When a server receives a configuration request, it responds with a device configuration acknowledgment to confirm the reception of the request.
A device configuration request frame contains the ID of the communication channel between a KNXnet/IP client and server, the sequence number of the frame, and a common external message interface (cEMI) frame with the configuration message.
The KNXnet/IP server discards frames with unexpected sequence numbers and does not send a device configuration acknowledgment upon receiving them.
The common way to create a device configuration request is:
QKnxDeviceManagementFrame cemi = // build cEMI frame auto netIpFrame = QKnxNetIpDeviceConfigurationRequestProxy::builder() .setChannelId(1) .setSequenceNumber(1) .setCemi(cemi) .create();
If the KNXnet/IP client does not receive a device configuration acknowledgment within the specified timeout or the status of a received acknowledgment frame indicates that errors occurred, the client repeats the request three times and then terminates the connection by sending a disconnection request, QKnxNetIpDisconnectRequestProxy, to the server’s control endpoint.
See also Qt KNX Device Management Classes.
Member Function Documentation
QKnxNetIpFrame Builder::create() const
Creates and returns a KNXnet/IP device configuration request frame.
Note: The returned frame may be invalid depending on the values used during setup.
See also isValid().
Builder &Builder::setCemi(const QKnxDeviceManagementFrame &cemi)
Sets the cEMI frame that contains the device configuration message to cemi and returns a reference to the builder.
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 sequence number of a device configuration request frame to sequenceNumber and returns a reference to the builder.
© 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.