[nikohomecontrol] Fix deprecated MQTT transport call (#8577)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
9780cd9b5b
commit
aa3f73d423
@ -229,7 +229,7 @@ public class NhcMqttConnection2 implements MqttActionCallback {
|
|||||||
|
|
||||||
if (isConnected()) {
|
if (isConnected()) {
|
||||||
logger.debug("Niko Home Control: publish {}, {}", topic, payload);
|
logger.debug("Niko Home Control: publish {}, {}", topic, payload);
|
||||||
connection.publish(topic, payload.getBytes());
|
connection.publish(topic, payload.getBytes(), connection.getQos(), false);
|
||||||
} else {
|
} else {
|
||||||
logger.debug("Niko Home Control: cannot publish, not subscribed to connection messages");
|
logger.debug("Niko Home Control: cannot publish, not subscribed to connection messages");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user