← Back to team overview

mosquitto-users team mailing list archive

(no subject)

 

Hi all,

I'm using MQTT with several embedded devices that will frequently post to a mosquito broker every 15 minutes.  In addition, I have an MQTT client that is gathering data and placing it in a database.  When running a long test, I noticed that my database client dropped its connection with the broker briefly and messages were missed because my devices were not publishing with the retain bit set.  In order to prevent this type of "data loss" (when a client is not currently subscribed), I figured that I could set the retain bit to 1.  However, when I do this my mosquito broker becomes saturated with messages and each time I drop connection I receive all of the previously published data.  Is there a way to tell the mosquito broker that it can remove its persisted entries?

Patrick



Follow ups