Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] deliveryComplete callback usage

Hi,

I had a couple of questions on the deliveryComplete callback.

public void deliveryComplete(IMqttDeliveryToken token) {}

How can we use this mechanism to do some message bookkeeping, in other words, keeping tabs on that messages have been delivered completely.

It is my understanding that upon succesfull delivery this token will be empty (the message already being discarded).

In that case, what can be done inside this callback ?

The DeliveryToken is also something that is not available after publish I guess, as the asyncClient doesn't return anything, and the token is not made available.

So how should one this  deliveryComplete callback and IMqttDeliveryToken object ?

Regards,
Davy

Back to the top