QMqttServerConnectionProperties Class

Detailed Description

When a connection has been established the server might send additional details about the connection properties. Use availableProperties() to identify properties set by the server. If a property is not set by the server, default values are assumed and can be obtained by invoking access functions of this instance.

Connection properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion for more information.

Member Type Documentation

 

enum QMqttServerConnectionProperties::ServerPropertyDetail

flags QMqttServerConnectionProperties::ServerPropertyDetails

This enum type specifies the available properties set by the server or the client after establishing a connection.

Constant

Value

Description

QMqttServerConnectionProperties::None

0x00000000

No property has been specified.

QMqttServerConnectionProperties::SessionExpiryInterval

0x00000001

The number of seconds the server keeps the session after a disconnect.

QMqttServerConnectionProperties::MaximumReceive

0x00000002

The maximum number of QoS 1 and 2 message the server is capable of managing concurrently.

QMqttServerConnectionProperties::MaximumQoS

0x00000004

The maximum QoS level the server can understand.

QMqttServerConnectionProperties::RetainAvailable

0x00000010

Specifies whether retained messages are supported.

QMqttServerConnectionProperties::MaximumPacketSize

0x00000020

Specifies the maximum packet size including the message header and properties.

QMqttServerConnectionProperties::AssignedClientId

0x00000040

Specifies whether the server assigned a client identifier.

QMqttServerConnectionProperties::MaximumTopicAlias

0x00000080

Specifies the maximum amount of topic aliases.

QMqttServerConnectionProperties::ReasonString

0x00000100

Specifies a string providing more details on connection state.

QMqttServerConnectionProperties::UserProperty

0x00000200

Specifies additional user properties.