mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 16:41:53 +00:00
Add possibility to set qos and retained state of MQTT messages
This commit is contained in:
@@ -6,6 +6,8 @@ public class MQTTMessage {
|
||||
private String message;
|
||||
private Integer delay;
|
||||
private Integer count;
|
||||
private Integer qos;
|
||||
private Boolean retain;
|
||||
public String getClientId() {
|
||||
return clientId;
|
||||
}
|
||||
@@ -36,4 +38,19 @@ public class MQTTMessage {
|
||||
public void setCount(Integer count) {
|
||||
this.count = count;
|
||||
}
|
||||
public Integer getQos() {
|
||||
return qos;
|
||||
}
|
||||
|
||||
public void setQos(Integer qos) {
|
||||
this.qos = qos;
|
||||
}
|
||||
|
||||
public Boolean getRetain() {
|
||||
return retain;
|
||||
}
|
||||
|
||||
public void setRetain(Boolean retain) {
|
||||
this.retain = retain;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user