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