From 6af3d4f2e473d2f7a938e0e96e3e8e0d3c92aa93 Mon Sep 17 00:00:00 2001 From: stedon81 Date: Sat, 27 Feb 2021 11:25:33 +0100 Subject: [PATCH] io transport mqtt sets wrong QoS levels to hiveMQ #2145 (#2208) Signed-off-by: Stefan Donath GitOrigin-RevId: 361e985c1c333d4fedd37b1359f936f8dcbf012d --- .../mqtt/internal/client/MqttAsyncClientWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.opensmarthouse.core.io.transport.mqtt/src/main/java/org/openhab/core/io/transport/mqtt/internal/client/MqttAsyncClientWrapper.java b/bundles/org.opensmarthouse.core.io.transport.mqtt/src/main/java/org/openhab/core/io/transport/mqtt/internal/client/MqttAsyncClientWrapper.java index b07e29c4eb1..354f1b97808 100644 --- a/bundles/org.opensmarthouse.core.io.transport.mqtt/src/main/java/org/openhab/core/io/transport/mqtt/internal/client/MqttAsyncClientWrapper.java +++ b/bundles/org.opensmarthouse.core.io.transport.mqtt/src/main/java/org/openhab/core/io/transport/mqtt/internal/client/MqttAsyncClientWrapper.java @@ -88,9 +88,9 @@ public abstract CompletableFuture connect(@Nullable MqttWillAndTestament lwt, protected MqttQos getMqttQosFromInt(int qos) { switch (qos) { case 0: - return MqttQos.AT_LEAST_ONCE; - case 1: return MqttQos.AT_MOST_ONCE; + case 1: + return MqttQos.AT_LEAST_ONCE; case 2: return MqttQos.EXACTLY_ONCE; default: