Builder ClassClass Builder is declared in class QKnxNetIpRoutingLostMessageProxy.
|Builder &||setDeviceState(QKnxNetIp::DeviceState state)|
|Builder &||setLostMessageCount(quint16 messageCount)|
A routing-lost message is sent by a KNXnet/IP router to notify that KNXnet/IP routing indication frames were lost. The message contains the state of the router or device (QKnx::NetIp::DeviceState) and the number of lost frames.
The following code sample illustrates how to create a routing-lost message about three frames being lost because an error occurred in the IP network:
auto frame = QKnxNetIpRoutingLostMessageProxy::builder() .setDeviceState(QKnx::NetIp::DeviceState::IpFault) .setLostMessageCount(3) .create();
Member Function Documentation
QKnxNetIpFrame Builder::create() const
Creates and returns a KNXnet/IP routing-lost message frame.
Note: The returned frame may be invalid depending on the values used during setup.
See also isValid().
Builder &Builder::setDeviceState(QKnxNetIp::DeviceState state)
Sets the state of a KNXnet/IP router or device to state and returns a reference to the builder.
Sets the the number of frames that were lost to messageCount and returns a reference to the builder.
© 2019 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.