En esta página

QMqttUserProperties Class

La clase QMqttUserProperties representa una lista de valores QMqttStringPair que pueden ser pasados al servidor. Más...

Cabecera: #include <QMqttUserProperties>
CMake: find_package(Qt6 REQUIRED COMPONENTS Mqtt)
target_link_libraries(mytarget PRIVATE Qt6::Mqtt)
qmake: QT += mqtt
Hereda: QList

Descripción detallada

Las propiedades de usuario permiten a un cliente pasar datos adicionales al servidor o a otros suscriptores, que no pertenecen a la carga útil del mensaje.

Por otra parte, también proporcionan al servidor la flexibilidad necesaria para proporcionar más información a los clientes conectados.

El servidor puede añadir propiedades de usuario adicionales a las proporcionadas. Sin embargo, el orden de las propiedades proporcionadas no se modifica durante la transferencia.

Nota: Las propiedades de usuario forman parte de la especificación MQTT 5.0 y no pueden utilizarse cuando se utiliza QtMqtt con un nivel de protocolo anterior. Consulte QMqttClient::ProtocolVersion para obtener más información.

Véase también QMqttAuthenticationProperties, QMqttConnectionProperties, QMqttLastWillProperties, QMqttPublishProperties, QMqttSubscriptionProperties, QMqttUnsubscriptionProperties, y QMqttSubscription.

© 2026 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.