QMqttUnsubscriptionProperties Class

The QMqttUnsubscriptionProperties class represents configuration options a QMqttClient can pass to the server when unsubscribing from a topic filter. 更多...

頭: #include <QMqttUnsubscriptionProperties>
CMake: find_package(Qt6 REQUIRED COMPONENTS Mqtt)
target_link_libraries(mytarget PRIVATE Qt6::Mqtt)
qmake: QT += mqtt

公共函數

void setUserProperties (const QMqttUserProperties & user )
QMqttUserProperties userProperties () const

詳細描述

注意: Unsubscription properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion 瞭解更多信息。

成員函數文檔編製

void QMqttUnsubscriptionProperties:: setUserProperties (const QMqttUserProperties & user )

Sets the user properties to user .

另請參閱 userProperties ().

QMqttUserProperties QMqttUnsubscriptionProperties:: userProperties () const

Returns the user specified properties.

另請參閱 setUserProperties ().