From 5f39a21ff4de203e997828e205d01d86318ee464 Mon Sep 17 00:00:00 2001 From: Philipp Arndt <2f.mail@gmx.de> Date: Sun, 31 Jan 2021 11:39:31 +0100 Subject: [PATCH] update settings for hive, default qos = one --- .../rnd7/mqttgateway/config/ConfigMqtt.java | 34 +------------------ 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/src/de.rnd7.mqttgateway/src/main/java/de/rnd7/mqttgateway/config/ConfigMqtt.java b/src/de.rnd7.mqttgateway/src/main/java/de/rnd7/mqttgateway/config/ConfigMqtt.java index 5c83688..712ad01 100644 --- a/src/de.rnd7.mqttgateway/src/main/java/de/rnd7/mqttgateway/config/ConfigMqtt.java +++ b/src/de.rnd7.mqttgateway/src/main/java/de/rnd7/mqttgateway/config/ConfigMqtt.java @@ -20,11 +20,8 @@ public class ConfigMqtt { @SerializedName("topic") private String topic; - @SerializedName("client-id") - private String clientId; - @SerializedName("qos") - private int qos = 2; + private int qos = 1; @SerializedName("bridge-info") private boolean bridgeInfo = true; @@ -35,18 +32,6 @@ public class ConfigMqtt { @SerializedName("deduplicate") private boolean deduplicate = true; - @SerializedName("max-inflight") - private int maxInflight = 10; - - public int getMaxInflight() { - return this.maxInflight; - } - - public ConfigMqtt setMaxInflight(final int maxInflight) { - this.maxInflight = maxInflight; - return this; - } - public String getUrl() { return this.url; } @@ -74,23 +59,6 @@ public ConfigMqtt setPassword(final String password) { return this; } - public ConfigMqtt setClientId(final String clientId) { - this.clientId = clientId; - return this; - } - - public Optional getClientId() { - return Optional.ofNullable(this.clientId); - } - - public ConfigMqtt setDefaultClientId(final String clientId) { - if (this.clientId == null) { - this.clientId = clientId; - } - - return this; - } - public int getQos() { return this.qos; }