QMqttMessageStatusProperties#

The QMqttMessageStatusProperties class represents additional information provided by the server during message delivery. More

Synopsis#

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

Depending on the QoS level of a message being sent by publish() , a server reports the state of delivery. Additionally to the MessageStatus , complementary information might be included by the server. These are exposed to users via QMqttMessageStatusProperties .

Note

Message status 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.QMqttMessageStatusProperties#

PySide6.QtMqtt.QMqttMessageStatusProperties(arg__1)

Parameters:

arg__1PySide6.QtMqtt.QMqttMessageStatusProperties

PySide6.QtMqtt.QMqttMessageStatusProperties.reason()#
Return type:

str

Returns the reason string of a failed message delivery.

PySide6.QtMqtt.QMqttMessageStatusProperties.reasonCode()#
Return type:

ReasonCode

Returns the reason code of a failed message delivery.

PySide6.QtMqtt.QMqttMessageStatusProperties.userProperties()#
Return type:

QMqttUserProperties

Returns properties specified in conjunction with a message.