diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-03-19 15:55:58 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-07-20 11:53:14 +0000 |
commit | ac666587dd32e3b130295ca9084a407e12482dfc (patch) | |
tree | 552637310689d5b4b4108cc180349791d06f2c88 /src/mqtt/qmqttclient.cpp | |
parent | 557cfbe60557b059292a5fda1cb15f76cf1c5b33 (diff) |
MQTT5: Add initial support
With this patch it is possible to set the version to MQTT5 and
use the same features as against version 3.1.1. No MQTT5 specific
features are enabled.
Change-Id: I129ff8a2c996d7bcc582565fccda9e38edc48c62
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/mqtt/qmqttclient.cpp')
-rw-r--r-- | src/mqtt/qmqttclient.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mqtt/qmqttclient.cpp b/src/mqtt/qmqttclient.cpp index f4a6dac..dcfb213 100644 --- a/src/mqtt/qmqttclient.cpp +++ b/src/mqtt/qmqttclient.cpp @@ -579,8 +579,7 @@ void QMqttClient::setProtocolVersion(ProtocolVersion protocolVersion) if (d->m_protocolVersion == protocolVersion) return; - // Only MQTT 3 and 4 are supported - if (protocolVersion < 3 || protocolVersion > 4) + if (protocolVersion < 3 || protocolVersion > 5) return; d->m_protocolVersion = protocolVersion; |