From 4fa1aae44b4aec28289f044a0bfe87b3b5b3ab6f Mon Sep 17 00:00:00 2001 From: Valerii Sosliuk Date: Wed, 16 Jan 2019 08:10:52 +0200 Subject: [PATCH] Version updated to 2.2.1 (#162) * Updated to latest version of netty-mqtt * Updated to ThingsBoard version of netty-mqtt * Version updated to 2.2.1 --- pom.xml | 2 +- .../client/listener/MqttDeviceStateChangeMessageListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 194c089a2..71bb6ea49 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ org.thingsboard gateway - 2.1.1-SNAPSHOT + 2.2.1-SNAPSHOT jar Thingsboard Gateway diff --git a/src/main/java/org/thingsboard/gateway/extensions/mqtt/client/listener/MqttDeviceStateChangeMessageListener.java b/src/main/java/org/thingsboard/gateway/extensions/mqtt/client/listener/MqttDeviceStateChangeMessageListener.java index 7f22ef078..c8729d600 100644 --- a/src/main/java/org/thingsboard/gateway/extensions/mqtt/client/listener/MqttDeviceStateChangeMessageListener.java +++ b/src/main/java/org/thingsboard/gateway/extensions/mqtt/client/listener/MqttDeviceStateChangeMessageListener.java @@ -47,7 +47,7 @@ public class MqttDeviceStateChangeMessageListener extends AbstractJsonConverter @Override public void messageArrived(String topic, MqttMessage msg) throws Exception { try { - String deviceName = null; + String deviceName; String deviceType = null; if (!StringUtils.isEmpty(mapping.getDeviceNameTopicExpression())) { deviceName = eval(topic);