QMqttUserProperties Class
La classe QMqttUserProperties rappresenta un elenco di valori " QMqttStringPair " che possono essere trasmessi al server. Per saperne di più...
| Intestazione: | #include <QMqttUserProperties> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt) target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
| qmake: | QT += mqtt |
| Eredita: | QList |
Descrizione dettagliata
Le proprietà utente consentono a un client di trasmettere al server o ad altri abbonati dati aggiuntivi che non fanno parte del payload del messaggio.
D'altra parte, offrono anche al server la flessibilità di fornire ulteriori informazioni ai client connessi.
Il server potrebbe aggiungere ulteriori proprietà utente a quelle fornite. Tuttavia, l’ordine delle proprietà fornite non viene modificato durante il trasferimento.
Nota: le proprietàutente fanno parte della specifica MQTT 5.0 e non possono essere utilizzate quando si utilizza QtMqtt con un livello di protocollo precedente. Per ulteriori informazioni, consultare QMqttClient::ProtocolVersion.
Vedi anche QMqttAuthenticationProperties, QMqttConnectionProperties, QMqttLastWillProperties, QMqttPublishProperties, QMqttSubscriptionProperties, QMqttUnsubscriptionProperties e 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.