QMqttLastWillProperties#
The QMqttLastWillProperties class represents configuration options a QMqttClient can pass to the server when specifying the last will during connecting to a server. More…
Synopsis#
Functions#
def
contentType()def
correlationData()def
messageExpiryInterval()def
payloadFormatIndicator()def
responseTopic()def
setContentType(content)def
setCorrelationData(correlation)def
setMessageExpiryInterval(expiry)def
setPayloadFormatIndicator(p)def
setResponseTopic(response)def
setUserProperties(properties)def
setWillDelayInterval(delay)def
userProperties()def
willDelayInterval()
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#
Note
Last Will 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.QMqttLastWillProperties#
PySide6.QtMqtt.QMqttLastWillProperties(arg__1)
- Parameters:
- PySide6.QtMqtt.QMqttLastWillProperties.contentType()#
- Return type:
str
Returns the content type of the last will message.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.correlationData()#
- Return type:
Returns the correlation data to identify the request.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.messageExpiryInterval()#
- Return type:
int
Returns the lifetime of the last will message in seconds, starting from the will delay interval.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.payloadFormatIndicator()#
- Return type:
Returns the payload format indicator.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.responseTopic()#
- Return type:
str
Returns the topic that subscribers to the last will message should respond to.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.setContentType(content)#
- Parameters:
content – str
Sets the content type to content.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.setCorrelationData(correlation)#
- Parameters:
correlation –
PySide6.QtCore.QByteArray
Sets the correlation data to correlation.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.setMessageExpiryInterval(expiry)#
- Parameters:
expiry – int
Sets the message expiry interval to expiry.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.setPayloadFormatIndicator(p)#
- Parameters:
Sets the payload format indicator to p.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.setResponseTopic(response)#
- Parameters:
response – str
Sets the response topic to response.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.setUserProperties(properties)#
- Parameters:
properties –
QMqttUserProperties
Sets the user properties to properties.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.setWillDelayInterval(delay)#
- Parameters:
delay – int
Sets the will delay interval to delay.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.userProperties()#
- Return type:
QMqttUserProperties
Returns the user properties.
See also
- PySide6.QtMqtt.QMqttLastWillProperties.willDelayInterval()#
- Return type:
int
Returns the delay in seconds a last will message will be sent after disconnecting from the server.
See also