The QMqttSubscriptionProperties class represents configuration options a QMqttClient can pass to the server when subscribing to a topic filter. 更多...
头: | #include <QMqttSubscriptionProperties> |
qmake: | QT += mqtt |
Since: | Qt 5.12 |
void | setSubscriptionIdentifier (quint32 id ) |
void | setUserProperties (const QMqttUserProperties & user ) |
quint32 | subscriptionIdentifier () const |
QMqttUserProperties | userProperties () const |
注意: Subscription properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion 了解更多信息。
Sets the subscription identifier to id .
另请参阅 subscriptionIdentifier ().
Sets the user properties to user .
另请参阅 userProperties ().
Returns the subscription identifier used to describe this subscription.
另请参阅 setSubscriptionIdentifier ().
Returns the user specified properties.
另请参阅 setUserProperties ().