From b0ff97944858b93f7d35416f411395ad64b7af5a Mon Sep 17 00:00:00 2001 From: Shabirmean Date: Wed, 6 Jan 2016 15:08:22 +0530 Subject: [PATCH] MQTTTransportHandler-"cleanSession" set to true in order to overcome temporary bug in MB --- .../device/mgt/iot/transport/mqtt/MQTTTransportHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt-iot/org.wso2.carbon.device.mgt.iot/src/main/java/org/wso2/carbon/device/mgt/iot/transport/mqtt/MQTTTransportHandler.java b/components/device-mgt-iot/org.wso2.carbon.device.mgt.iot/src/main/java/org/wso2/carbon/device/mgt/iot/transport/mqtt/MQTTTransportHandler.java index ed1b454cd3..a6363be01c 100644 --- a/components/device-mgt-iot/org.wso2.carbon.device.mgt.iot/src/main/java/org/wso2/carbon/device/mgt/iot/transport/mqtt/MQTTTransportHandler.java +++ b/components/device-mgt-iot/org.wso2.carbon.device.mgt.iot/src/main/java/org/wso2/carbon/device/mgt/iot/transport/mqtt/MQTTTransportHandler.java @@ -133,7 +133,7 @@ public abstract class MQTTTransportHandler } options = new MqttConnectOptions(); - options.setCleanSession(false); + options.setCleanSession(true); //TODO:: Use constant strings options.setWill(clientWillTopic, "Connection-Lost".getBytes(StandardCharsets.UTF_8), 2, true);