IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QMqttUserProperties Class

The QMqttUserProperties class represents a list of QMqttStringPair values which can be passed to the server.

This class was introduced in Qt 5.12.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QMqttUserProperties Class

  • Header: QMqttUserProperties

  • Since: Qt 5.12

  • qmake: QT += mqtt

  • Inherits: QList

Detailed Description

User properties allow a client to pass additional data to the server or other subscribers, which do not belong to the message payload.

On the other hand it also provides a server the flexibility to provide further information to connected clients.

The server might add additional user properties to the ones provided. However, the order of the provided properties is not changed during transfer.

User properties are part of the MQTT 5.0 specification and cannot be used when using QtMqtt with an older protocol level. See QMqttClient::ProtocolVersion for more information.

See Also

See also QMqttAuthenticationProperties, QMqttConnectionProperties, QMqttLastWillProperties, QMqttPublishProperties, QMqttSubscriptionProperties, QMqttUnsubscriptionProperties, QMqttSubscription

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+