Is MqttClientPersistence ever needed for subscriber ? [message #1705434] |
Sat, 15 August 2015 06:25  |
Eclipse User |
|
|
|
The java doc page for MqttClientPersistance, reads "Represents a persistent data store, used to store outbound and inbound messages while they are in flight". Why is it needed for an inbound message or more specifically why is MqttClientPersistence needed for MQTT subscriber ?
For a MQTT publisher, we need to wait for the PUBACK packet and so usage of MqttClientPersistence is clear.
Assuming, my client is always an MQTT subscriber, independent of QOS, can I always instantiate it as below ?
//instantiate subscriber client with null persistance
MqttClient subcriberClient = new MqttClient( uri, cientId, null );
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04106 seconds