From acd5dfd8b03eefeb7252a4a0e9625e88b823713e Mon Sep 17 00:00:00 2001 From: Stefan Donath Date: Thu, 18 Feb 2021 16:35:55 +0100 Subject: [PATCH] io transport mqtt sets wrong QoS levels to hiveMQ #2145 --- .../mqtt/internal/client/MqttAsyncClientWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.core.io.transport.mqtt/src/main/java/org/openhab/core/io/transport/mqtt/internal/client/MqttAsyncClientWrapper.java b/bundles/org.openhab.core.io.transport.mqtt/src/main/java/org/openhab/core/io/transport/mqtt/internal/client/MqttAsyncClientWrapper.java index b07e29c4eb1..354f1b97808 100644 --- a/bundles/org.openhab.core.io.transport.mqtt/src/main/java/org/openhab/core/io/transport/mqtt/internal/client/MqttAsyncClientWrapper.java +++ b/bundles/org.openhab.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: