The QMqttUserProperties class represents a list of QMqttStringPair values which can be passed to the server. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS Mqtt) |
target_link_libraries(mytarget PRIVATE Qt6::Mqtt)
|qmake:||QT += mqtt|
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.
Note: 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 QMqttAuthenticationProperties, QMqttConnectionProperties, QMqttLastWillProperties, QMqttPublishProperties, QMqttSubscriptionProperties, QMqttUnsubscriptionProperties, and QMqttSubscription.
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.