You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
WLED MQTT messages are mostly retained, this could lead to broker storage issues and/or annoying residual messages.
Describe the solution you'd like
A checkbox for setting whether publishes from WLED should retain or not.
Describe alternatives you've considered
Editing mqtt.cpp
Additional context
By Karl_S via Discord #learning
I would assert that retained messages are a bad habit, especially since there is no user friendly way to remove obsolete retained messages.
There are some justifications for them (i.e. quicker last known state retrieval, etc) but potential problems out-weight them.
Perhaps adding periodic state messages (1/min) could be used instead.
It has to be noted that many (and/or large) MQTT messages may yield dropped frames.
I could see this being useful for short-lived or temporary displays. For anything other than that I think retained is the way to go. Why add the extra overhead of periodically refreshing the MQTT data on an already constrained device. It is pretty easy to clean up your topic tree with utilities like MQTT Explorer.
Activity
blazoncek commentedon Oct 11, 2021
I would assert that retained messages are a bad habit, especially since there is no user friendly way to remove obsolete retained messages.
There are some justifications for them (i.e. quicker last known state retrieval, etc) but potential problems out-weight them.
Perhaps adding periodic state messages (1/min) could be used instead.
It has to be noted that many (and/or large) MQTT messages may yield dropped frames.
AK5nowman commentedon Oct 17, 2021
I could see this being useful for short-lived or temporary displays. For anything other than that I think retained is the way to go. Why add the extra overhead of periodically refreshing the MQTT data on an already constrained device. It is pretty easy to clean up your topic tree with utilities like MQTT Explorer.
blazoncek commentedon Oct 17, 2021
Ordinary people don't use MQTT Explorer.
They should have no need to as well.
blazoncek commentedon May 26, 2023
There are 3 topics that are retained:
/g,/cand/status.As status is also LWT it should not be non-retained.
My proposal is to remove retain options from
/gand/ctopics altogether.blazoncek commentedon Jun 7, 2023
Fixed in #3220