QMqttLastWillProperties Class
Die Klasse QMqttLastWillProperties stellt Konfigurationsoptionen dar, die QMqttClient an den Server übergeben kann, wenn der letzte Wille während der Verbindung mit einem Server angegeben wird. Mehr...
Kopfzeile: | #include <QMqttLastWillProperties> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Mqtt) target_link_libraries(mytarget PRIVATE Qt6::Mqtt) |
qmake: | QT += mqtt |
Öffentliche Funktionen
QString | contentType() const |
QByteArray | correlationData() const |
quint32 | messageExpiryInterval() const |
QMqtt::PayloadFormatIndicator | payloadFormatIndicator() const |
QString | responseTopic() const |
void | setContentType(const QString &content) |
void | setCorrelationData(const QByteArray &correlation) |
void | setMessageExpiryInterval(quint32 expiry) |
void | setPayloadFormatIndicator(QMqtt::PayloadFormatIndicator p) |
void | setResponseTopic(const QString &response) |
void | setUserProperties(const QMqttUserProperties &properties) |
void | setWillDelayInterval(quint32 delay) |
QMqttUserProperties | userProperties() const |
quint32 | willDelayInterval() const |
Detaillierte Beschreibung
Hinweis: Last-Will-Eigenschaften sind Teil der MQTT 5.0-Spezifikation und können nicht verwendet werden, wenn eine Verbindung mit einer niedrigeren Protokollebene besteht. Siehe QMqttClient::ProtocolVersion für weitere Informationen.
Dokumentation der Mitgliedsfunktionen
QString QMqttLastWillProperties::contentType() const
Gibt den Inhaltstyp der letzten Willensmeldung zurück.
Siehe auch setContentType().
QByteArray QMqttLastWillProperties::correlationData() const
Gibt die Korrelationsdaten zur Identifizierung der Anfrage zurück.
Siehe auch setCorrelationData().
quint32 QMqttLastWillProperties::messageExpiryInterval() const
Gibt die Lebensdauer der letzten Willensmeldung in Sekunden zurück, beginnend mit dem Willensverzögerungsintervall.
Siehe auch setMessageExpiryInterval().
QMqtt::PayloadFormatIndicator QMqttLastWillProperties::payloadFormatIndicator() const
Gibt den Indikator für das Nutzlastformat zurück.
Siehe auch setPayloadFormatIndicator().
QString QMqttLastWillProperties::responseTopic() const
Gibt das Thema zurück, auf das die Abonnenten der letzten Will-Nachricht antworten sollen.
Siehe auch setResponseTopic().
void QMqttLastWillProperties::setContentType(const QString &content)
Setzt den Inhaltstyp auf content.
Siehe auch contentType().
void QMqttLastWillProperties::setCorrelationData(const QByteArray &correlation)
Setzt die Korrelationsdaten auf correlation.
Siehe auch correlationData().
void QMqttLastWillProperties::setMessageExpiryInterval(quint32 expiry)
Setzt das Verfallsintervall der Nachricht auf expiry.
Siehe auch messageExpiryInterval().
void QMqttLastWillProperties::setPayloadFormatIndicator(QMqtt::PayloadFormatIndicator p)
Setzt den Indikator für das Nutzlastformat auf p.
Siehe auch payloadFormatIndicator().
void QMqttLastWillProperties::setResponseTopic(const QString &response)
Setzt das Antwortthema auf response.
Siehe auch responseTopic().
void QMqttLastWillProperties::setUserProperties(const QMqttUserProperties &properties)
Setzt die Benutzereigenschaften auf properties.
Siehe auch userProperties().
void QMqttLastWillProperties::setWillDelayInterval(quint32 delay)
Setzt das Verzögerungsintervall für den Willen auf delay.
Siehe auch willDelayInterval().
QMqttUserProperties QMqttLastWillProperties::userProperties() const
Gibt die Benutzereigenschaften zurück.
Siehe auch setUserProperties().
quint32 QMqttLastWillProperties::willDelayInterval() const
Gibt die Verzögerung in Sekunden zurück, mit der eine letzte Willensnachricht nach dem Trennen der Verbindung zum Server gesendet wird.
Siehe auch setWillDelayInterval().
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.