OctoPrint/OctoPrint-MQTT

LWT with retain flag

Closed this issue · 2 comments

eRudy commented

Hi there,

I see that the status messages my Octopi is sending as LWT are not marked with the retain flag, with or without the option selected in settings.

Is it a normal behaviour ? Is there a way to set retain flag (only) for LWT messages ?

Thx

eRudy commented

Well it seems that the retain flag setting actually sets the flag for LWT messages as expected...

Is it possible to set the flag for these LWT messages only, and not globally ?

eRudy commented

Well well, I should really have done more debugging before creating this post.

It turns out that enabling "retain flag", and selecting only a few event messages to be sent to the broker, only LWT is flagged as retain..

That's what I wanted ;)

Sorry for the noise.