En esta página

QMqttUserProperties Class

La clase QMqttUserProperties representa una lista de valores de « QMqttStringPair » que se pueden enviar al servidor. Más información...

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

Descripción detallada

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

Por otro lado, también proporcionan al servidor la flexibilidad de facilitar información adicional 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 propiedadesde usuario forman parte de la especificación MQTT 5.0 y no se pueden utilizar cuando se emplea 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.