Hello,
we just implemented a program that uses mqtt to publish data to an mosquitto broker.
As of now, everything is working fine, but I have some concerns about the safety of my data.
The mosquitto library is able to cache messages not sent to the broker because of an offline condition. When the connection is established again, all cached messages are then sent to the broker.
That’s fine.
But what happens, when my application is being closed, and there were cached messages? How can i flush / write them to a persistent storage so that i will be able to sent them at my next program start?
Greetings
Wolfgang