Skip to content

Commit

Permalink
io transport mqtt sets wrong QoS levels to hiveMQ #2145 (#2208)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Donath <[email protected]>
  • Loading branch information
stedon81 authored Feb 27, 2021
1 parent 7fef42c commit 361e985
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 361e985

Please sign in to comment.