Skip to content

Commit

Permalink
update settings for hive, default qos = one
Browse files Browse the repository at this point in the history
  • Loading branch information
philipparndt committed Jan 31, 2021
1 parent 063bdc7 commit 5f39a21
Showing 1 changed file with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down Expand Up @@ -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<String> 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;
}
Expand Down

0 comments on commit 5f39a21

Please sign in to comment.