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();
Creates and returns a KNXnet/IP routing-lost message frame.
注意: The returned frame may be invalid depending on the values used during setup.
另请参阅 isValid ().
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.