MQTTTransportHandler-"cleanSession" set to true in order to overcome temporary bug in MB

Shabirmean 9 years ago
parent 92ee35af7b
commit b0ff979448

@ -133,7 +133,7 @@ public abstract class MQTTTransportHandler
} }
options = new MqttConnectOptions(); options = new MqttConnectOptions();
options.setCleanSession(false); options.setCleanSession(true);
//TODO:: Use constant strings //TODO:: Use constant strings
options.setWill(clientWillTopic, "Connection-Lost".getBytes(StandardCharsets.UTF_8), 2, options.setWill(clientWillTopic, "Connection-Lost".getBytes(StandardCharsets.UTF_8), 2,
true); true);

Loading…
Cancel
Save