QMqttUserProperties Class

QMqttUserProperties 클래스는 서버에 전달할 수 있는 QMqttStringPair 값의 목록을 나타냅니다. 더 보기...

헤더: #include <QMqttUserProperties>
CMake: find_package(Qt6 REQUIRED COMPONENTS Mqtt)
target_link_libraries(mytarget PRIVATE Qt6::Mqtt)
qmake: QT += mqtt
상속합니다: QList

상세 설명

사용자 속성을 사용하면 클라이언트가 메시지 페이로드에 속하지 않는 추가 데이터를 서버나 다른 가입자에게 전달할 수 있습니다.

반면에 서버는 연결된 클라이언트에게 추가 정보를 제공할 수 있는 유연성을 제공합니다.

서버는 제공된 사용자 속성에 추가 사용자 속성을 추가할 수 있습니다. 그러나 제공된 속성의 순서는 전송 중에 변경되지 않습니다.

참고: 사용자 속성은 MQTT 5.0 사양의 일부이며 이전 프로토콜 수준에서 QtMqtt 을 사용할 때는 사용할 수 없습니다. 자세한 내용은 QMqttClient::ProtocolVersion 을 참조하세요.

QMqttAuthenticationProperties, QMqttConnectionProperties, QMqttLastWillProperties, QMqttPublishProperties, QMqttSubscriptionProperties, QMqttUnsubscriptionProperties, QMqttSubscription도 참조하세요 .

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