The QMqttAuthenticationProperties class represents configuration options during the authentication process. More...
Header: | #include <QMqttAuthenticationProperties> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt) target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
qmake: | QT += mqtt |
Since: | Qt 5.12 |
QByteArray | authenticationData() const |
QString | authenticationMethod() const |
QString | reason() const |
void | setAuthenticationData(const QByteArray &adata) |
void | setAuthenticationMethod(const QString &method) |
void | setReason(const QString &r) |
void | setUserProperties(const QMqttUserProperties &user) |
QMqttUserProperties | userProperties() const |
Note: Authentication properties are part of the MQTT 5.0 specification and cannot be used when connecting with a lower protocol level. See QMqttClient::ProtocolVersion for more information.
Returns the authentication data
See also setAuthenticationData().
Returns the authentication method.
See also setAuthenticationMethod().
Returns the reason string. The reason string specifies the reason for a disconnect.
See also setReason().
Sets the authentication data to adata.
Authentication data can only be used if an authentication method has been specified.
See also authenticationData() and authenticationMethod().
Sets the authentication method to method.
See also authenticationMethod().
Sets the reason string to r.
See also reason().
Sets the user properties to user.
See also userProperties().
Returns the user properties.
See also setUserProperties().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: