Merge pull request #130 from Shabirmean/IoTS-1.0.0-M1

"cleanSession" set to true in MQTTTransportHandler
Ruwan 9 years ago
commit 4ceb61c266

@ -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