parent
548e3f6f20
commit
0f5bfe9a8c
|
@ -59,7 +59,7 @@ public class MQTTActions implements ThingActions {
|
|||
public void publishMQTT(
|
||||
@ActionInput(name = "topic", label = "@text/actionInputTopicLabel", description = "@text/actionInputTopicDesc") @Nullable final String topic,
|
||||
@ActionInput(name = "value", label = "@text/actionInputValueLabel", description = "@text/actionInputValueDesc") @Nullable final String value,
|
||||
@ActionInput(name = "retain", label = "@text/actionInputRetainlabel", description = "@text/actionInputRetainDesc") @Nullable final Boolean retain) {
|
||||
@ActionInput(name = "retain", label = "@text/actionInputRetainLabel", description = "@text/actionInputRetainDesc") @Nullable final Boolean retain) {
|
||||
if (value == null) {
|
||||
logger.debug("skipping MQTT publishing to topic '{}' due to null value.", topic);
|
||||
return;
|
||||
|
@ -78,7 +78,7 @@ public class MQTTActions implements ThingActions {
|
|||
public void publishMQTT(
|
||||
@ActionInput(name = "topic", label = "@text/actionInputTopicLabel", description = "@text/actionInputTopicDesc") @Nullable final String topic,
|
||||
@ActionInput(name = "value", label = "@text/actionInputValueLabel", description = "@text/actionInputValueDesc") final byte[] value,
|
||||
@ActionInput(name = "retain", label = "@text/actionInputRetainlabel", description = "@text/actionInputRetainDesc") @Nullable final Boolean retain) {
|
||||
@ActionInput(name = "retain", label = "@text/actionInputRetainLabel", description = "@text/actionInputRetainDesc") @Nullable final Boolean retain) {
|
||||
AbstractBrokerHandler brokerHandler = handler;
|
||||
if (brokerHandler == null) {
|
||||
logger.warn("MQTT Action service ThingHandler is null!");
|
||||
|
|
Loading…
Reference in New Issue