IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QMqttLastWillProperties Class

The QMqttLastWillProperties class represents configuration options a QMqttClient can pass to the server when specifying the last will during connecting to a server.

This class was introduced in Qt 5.12.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QMqttLastWillProperties Class

  • Header: QMqttLastWillProperties

  • Since: Qt 5.12

  • qmake: QT += mqtt

Detailed Description

Last Will 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.

Member Function Documentation

 

QString QMqttLastWillProperties::contentType() const

Returns the content type of the last will message.

See Also

See also setContentType()

QByteArray QMqttLastWillProperties::correlationData() const

Returns the correlation data to identify the request.

See Also

See also setCorrelationData()

quint32 QMqttLastWillProperties::messageExpiryInterval() const

Returns the lifetime of the last will message in seconds, starting from the will delay interval.

See Also

QMqtt::PayloadFormatIndicator QMqttLastWillProperties::payloadFormatIndicator() const

Returns the payload format indicator.

See Also

QString QMqttLastWillProperties::responseTopic() const

Returns the topic that subscribers to the last will message should respond to.

See Also

See also setResponseTopic()

void QMqttLastWillProperties::setContentType(const QString &content)

Sets the content type to content.

See Also

See also contentType()

void QMqttLastWillProperties::setCorrelationData(const QByteArray &correlation)

Sets the correlation data to correlation.

See Also

See also correlationData()

void QMqttLastWillProperties::setMessageExpiryInterval(quint32 expiry)

Sets the message expiry interval to expiry.

See Also

void QMqttLastWillProperties::setPayloadFormatIndicator(QMqtt::PayloadFormatIndicator p)

Sets the payload format indicator to p.

See Also

void QMqttLastWillProperties::setResponseTopic(const QString &response)

Sets the response topic to response.

See Also

See also responseTopic()

void QMqttLastWillProperties::setUserProperties(const QMqttUserProperties &properties)

Sets the user properties to properties.

See Also

See also userProperties()

void QMqttLastWillProperties::setWillDelayInterval(quint32 delay)

Sets the will delay interval to delay.

See Also

See also willDelayInterval()

QMqttUserProperties QMqttLastWillProperties::userProperties() const

Returns the user properties.

See Also

See also setUserProperties()

quint32 QMqttLastWillProperties::willDelayInterval() const

Returns the delay in seconds a last will message will be sent after disconnecting from the server.

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+