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 ().