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▲
QByteArray QMqttLastWillProperties::correlationData() const▲
quint32 QMqttLastWillProperties::messageExpiryInterval() const▲
Returns the lifetime of the last will message in seconds, starting from the will delay interval.
See Also▲
See also setMessageExpiryInterval()
QMqtt::PayloadFormatIndicator QMqttLastWillProperties::payloadFormatIndicator() const▲
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)▲
void QMqttLastWillProperties::setCorrelationData(const QByteArray &correlation)▲
void QMqttLastWillProperties::setMessageExpiryInterval(quint32 expiry)▲
void QMqttLastWillProperties::setPayloadFormatIndicator(QMqtt::PayloadFormatIndicator p)▲
void QMqttLastWillProperties::setResponseTopic(const QString &response)▲
void QMqttLastWillProperties::setUserProperties(const QMqttUserProperties &properties)▲
void QMqttLastWillProperties::setWillDelayInterval(quint32 delay)▲
QMqttUserProperties QMqttLastWillProperties::userProperties() const▲
quint32 QMqttLastWillProperties::willDelayInterval() const▲
Returns the delay in seconds a last will message will be sent after disconnecting from the server.
See Also▲
See also setWillDelayInterval()