summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2020-05-06 23:50:05 +0300
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2020-05-15 18:58:21 +0200
commit8509e7c2b836002d5f0a468d36e8071fd3d90a91 (patch)
tree1d0a3856f3e3bb5cbcd4ba9e4d9100342a40eb87
parente1f7758574cb3578c75d9a0048a86358eab5e5bf (diff)
Introduce MQTT 5 UNSUBSCRIBE specific Reason Code
Change-Id: Idd988e7ddab4e589ba7bc3a634fb37aa9342aac4 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-rw-r--r--src/mqtt/qmqttglobal.h1
-rw-r--r--src/mqtt/qmqtttype.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/mqtt/qmqttglobal.h b/src/mqtt/qmqttglobal.h
index 56139b7..1ee2de6 100644
--- a/src/mqtt/qmqttglobal.h
+++ b/src/mqtt/qmqttglobal.h
@@ -66,6 +66,7 @@ enum class ReasonCode : quint16 {
SubscriptionQoSLevel1 = 0x01,
SubscriptionQoSLevel2 = 0x02,
NoMatchingSubscriber = 0x10,
+ NoSubscriptionExisted = 0x11,
ContinueAuthentication = 0x18,
ReAuthenticate = 0x19,
UnspecifiedError = 0x80,
diff --git a/src/mqtt/qmqtttype.cpp b/src/mqtt/qmqtttype.cpp
index 23d60b4..5b8cdaf 100644
--- a/src/mqtt/qmqtttype.cpp
+++ b/src/mqtt/qmqtttype.cpp
@@ -136,6 +136,8 @@ QT_BEGIN_NAMESPACE
The message has been accepted by the server, but there are no
subscribers to receive this message. A broker may send this
reason code instead of \l Success.
+ \value [since 5.15] NoSubscriptionExisted
+ No matching Topic Filter is being used by the Client.
\value [since 5.15] ContinueAuthentication
Continue the authentication with another step.
\value [since 5.15] ReAuthenticate