Builder Class

class QKnxNetIpRoutingLostMessageProxy::Builder

The QKnxNetIpRoutingLostMessageProxy::Builder class provides the means to create a routing-lost message frame. More...

Public Functions

QKnxNetIpFrame create() const
Builder &setDeviceState(QKnxNetIp::DeviceState state)
Builder &setLostMessageCount(quint16 messageCount)

Detailed Description

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.

Builder &Builder::setLostMessageCount(quint16 messageCount)

Sets the the number of frames that were lost to messageCount and returns a reference to the builder.