Builder Class

class QKnxNetIpRoutingLostMessageProxy ::Builder

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

公共函数

QKnxNetIpFrame create () const
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();
					

成员函数文档编制

QKnxNetIpFrame Builder:: create () const

Creates and returns a KNXnet/IP routing-lost message frame.

注意: The returned frame may be invalid depending on the values used during setup.

另请参阅 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.