QMqttAuthenticationProperties#
The QMqttAuthenticationProperties
class represents configuration options during the authentication process. More…
Synopsis#
Functions#
def
authenticationData
()def
authenticationMethod
()def
reason
()def
setAuthenticationData
(adata)def
setAuthenticationMethod
(method)def
setReason
(r)def
setUserProperties
(user)def
userProperties
()
Detailed Description#
Note
Authentication 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.QMqttAuthenticationProperties#
PySide6.QtMqtt.QMqttAuthenticationProperties(arg__1)
- Parameters
- PySide6.QtMqtt.QMqttAuthenticationProperties.authenticationData()#
- Return type
Returns the authentication data
See also
- PySide6.QtMqtt.QMqttAuthenticationProperties.authenticationMethod()#
- Return type
str
Returns the authentication method.
See also
- PySide6.QtMqtt.QMqttAuthenticationProperties.reason()#
- Return type
str
Returns the reason string. The reason string specifies the reason for a disconnect.
See also
- PySide6.QtMqtt.QMqttAuthenticationProperties.setAuthenticationData(adata)#
- Parameters
adata –
PySide6.QtCore.QByteArray
Sets the authentication data to adata
.
Authentication data can only be used if an authentication method has been specified.
- PySide6.QtMqtt.QMqttAuthenticationProperties.setAuthenticationMethod(method)#
- Parameters
method – str
Sets the authentication method to method
.
See also
- PySide6.QtMqtt.QMqttAuthenticationProperties.setReason(r)#
- Parameters
r – str
Sets the reason string to r
.
See also
- PySide6.QtMqtt.QMqttAuthenticationProperties.setUserProperties(user)#
- Parameters
user –
QMqttUserProperties
Sets the user properties to user
.
See also
- PySide6.QtMqtt.QMqttAuthenticationProperties.userProperties()#
- Return type
QMqttUserProperties
Returns the user properties.
See also