The conan experiment has ended, and the file is only bitrotting
nowadays.
Pick-to: 6.5 6.6
Change-Id: I26d08e441a8d049fe0a3d04236824c14988bd624
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
When using a websocket as the underlying IO device we must specify
that the device is sequential, to avoid spurious protocol violation
condition when packets are split across websocket frame boundaries.
The standard specifically states: "The receiver MUST NOT assume that
MQTT Control Packets are aligned on WebSocket frame boundaries."
New MQTT brokers like FlashMQ rely on well-behaved receivers.
Change-Id: Ia8e7fb0cf1cc518b364625b1955fb6b9ee44b7ef
Pick-to: 6.5
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Remove "Example" from the name of the example.
Add examplecategory.
Add a short explanation and a few code snippets.
Task-number: QTBUG-110893
Change-Id: I0e4e29b9cd86c4950fdd0263ecec54e8927b2c3c
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
The function sets the required CMake variables and policies.
Pick-to: 6.5
Task-number: QTBUG-112685
Change-Id: I11a1f26d27e77234a5f4097efd13723e9f9ce01b
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Fix some warnings that were reported by the MSVC compiler with the Wall
setting:
- use static_cast for signed/unsigned conversion
- use QString::fromUtf8 instead of the QByteArray constructor
Pick-to: 6.5
Task-number: QTBUG-110893
Change-Id: Ic982d3c16feb1ebcef729b4dfd023cc3b5017fec
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Remove the word "Example" from the name of the example.
Add the example to the "Connectivity" Category.
Update the screenshot - the example no longer has a ping button.
Task-number: QTBUG-110893
Change-Id: Ieedb32800804fc336ba0e3bd0c8f3b9e4cd13527
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Fix some signed/unsigned conversion warnings in the Simple Client
example reported by Visual Studio with the Wall compiler settings.
Pick-to: 6.5
Task-number: QTBUG-110893
Change-Id: I0a1851098d314c63195eb2366a6f87f42a4bbed4
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Fix some signed/unsigned conversion warnings.
Add explicit QMqttSubscription::Unsubscription case.
These warnings were reported by Visual Studio with the Wall compiler
setting.
Pick-to: 6.5
Task-number: QTBUG-110893
Change-Id: Ief64c4a04ba679f52c3e256aa96bb8f239ae68e9
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
According to the guideline "Example" should be not part of the name of
the example - remove it.
Add example to the Connectivity category.
Update the screenshot as the current one is obsolete. The application
no longer has a ping button but it has username and password fields.
Task-number: QTBUG-110893
Change-Id: Id9608ea6e76a3a7e89b0fd491d9fb329cfcbedc3
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
The example is not documented and it is also missing from the
examples-manifest.xml file. However, it can be still useful
for debugging or for performing small tests, so move it to
the tests/manual folder.
The qmake project files are kept for the examples because the
CI builds the examples with CMake and qmake. Now that this has
been moved to tests/manual, the .pro files can be removed.
Change-Id: Id69c3c6896d98b543ff5bd493592d06a27746496
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
On Windows, sending DISCONNECT might return data before the
QMqttConnection is destroyed, causing it to invoke on bogus QMqttClient
members.
Hence, set a flag to avoid this event, but still aim to send a
disconnect to the broker to nicely quit.
Fixes: QTBUG-111846
Pick-to: 6.5 6.4 6.2
Change-Id: Ia94865c9b404ecbd814150c313679aa10b3f6aa0
Reviewed-by: Mate Barany <mate.barany@qt.io>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
As we are now processing the arguments with
cmake_parse_arguments(PARSE_ARGV, we don't need to pass the escape
characters anymore.
Task-number: QTBUG-99238
Change-Id: I8dbdad71e6a5b40e944c55c35dd4c772af6b5665
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>