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

Setting "cleanSession" to true in order to overcome temporary bug in MB
Ruwan 9 years ago
commit 3a5f0f7a80

@ -120,7 +120,7 @@ public abstract class MqttSubscriber implements MqttCallback {
}
options = new MqttConnectOptions();
options.setCleanSession(false);
options.setCleanSession(true);
options.setWill(clientWillTopic, "connection crashed".getBytes(StandardCharsets.UTF_8), 2, true);
client.setCallback(this);
}

Loading…
Cancel
Save