QMqttSubscriptionProperties#

The QMqttSubscriptionProperties class represents configuration options a QMqttClient can pass to the server when subscribing to a topic filter. More

Inheritance diagram of PySide6.QtMqtt.QMqttSubscriptionProperties

Synopsis#

Functions#

Detailed Description#

Note

Subscription properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See ProtocolVersion for more information.

class PySide6.QtMqtt.QMqttSubscriptionProperties#

PySide6.QtMqtt.QMqttSubscriptionProperties(arg__1)

Parameters

arg__1PySide6.QtMqtt.QMqttSubscriptionProperties

PySide6.QtMqtt.QMqttSubscriptionProperties.noLocal()#
Return type

bool

Returns true if the subscription shall not receive local messages on the same topic.

See also

setNoLocal()

PySide6.QtMqtt.QMqttSubscriptionProperties.setNoLocal(noloc)#
Parameters

noloc – bool

Sets the subscription option to not receive local message. When a client publishes a message with the same topic as an existing local subscription the server by default sends the message back to the client. If noloc is set to true the broker will not send any message the same client has published.

See also

noLocal()

PySide6.QtMqtt.QMqttSubscriptionProperties.setSubscriptionIdentifier(id)#
Parameters

id – int

Sets the subscription identifier to id.

PySide6.QtMqtt.QMqttSubscriptionProperties.setUserProperties(user)#
Parameters

userQMqttUserProperties

Sets the user properties to user.

See also

userProperties()

PySide6.QtMqtt.QMqttSubscriptionProperties.subscriptionIdentifier()#
Return type

int

Returns the subscription identifier used to describe this subscription.

PySide6.QtMqtt.QMqttSubscriptionProperties.userProperties()#
Return type

QMqttUserProperties

Returns the user specified properties.