MQTT DisconnectedBufferOptions

17 views
Skip to first unread message

Danilo Carvalho

unread,
Sep 7, 2016, 10:07:41 PM9/7/16
to MQTT
hello

I'm working with MQTT and really enjoying it.

Now I'm on estuando DisconnectedBufferOptions, but when I use it
always gets the last recorded message with sb-0.

public void persistBufferedMessage (MqttWireMessage message) {
final String methodName = "persistBufferedMessage";
String key = getSendBufferedPersistenceKey (message);

getSendBufferedPersistenceKey always returns 0.

then the method overwrites the ultimamensagem buffer.

Can someone help me please?

My settings

qos1
retained = true
cleanSession = false
autoReconnected = true

Thank you very much.
Reply all
Reply to author
Forward
0 new messages