Setting "cleanSession" to true in order to overcome temporary bug in MB

Shabirmean 9 years ago
parent acc66863d6
commit 81b40f0024

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