<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[MQTT-Core] Support for RETAIN]]></title><description><![CDATA[<p dir="auto">RETAIN is an essential feature of any MQTT implementation. Without RETAIN, device information can get lost when a service like Home Assistant who uses MQTT subscription to get device info, has an issue. For instance, when Core sends out an MQTT discovery message (essential for Home Assistant auto-discovery) the RETAIN flag ensures that the device is still available after Home Assistant reboots.</p>
]]></description><link>https://community.m5stack.com/topic/3235/mqtt-core-support-for-retain</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 19:12:10 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3235.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Apr 2021 01:19:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [MQTT-Core] Support for RETAIN on Sun, 07 Dec 2025 11:30:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/magister" aria-label="Profile: magister">@<bdi>magister</bdi></a></p>
<p dir="auto">in the mean time you could try and copy the correct Python statement into an <code>Execute mpy code</code> block. You can find it under <code>System</code>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/30285</link><guid isPermaLink="true">https://community.m5stack.com/post/30285</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 07 Dec 2025 11:30:21 GMT</pubDate></item><item><title><![CDATA[Reply to [MQTT-Core] Support for RETAIN on Sat, 06 Dec 2025 22:16:03 GMT]]></title><description><![CDATA[<p dir="auto">You can edit the UIFlow2 python code to add "retain=True" as that functionality is available in the python library.  What is needed is that <strong>retain=</strong> needs to be exposed in the Block definitions.  Otherwise, I'm constantly having to add that back in every time I turn off editing mode.</p>
]]></description><link>https://community.m5stack.com/post/30284</link><guid isPermaLink="true">https://community.m5stack.com/post/30284</guid><dc:creator><![CDATA[magister]]></dc:creator><pubDate>Sat, 06 Dec 2025 22:16:03 GMT</pubDate></item><item><title><![CDATA[Reply to [MQTT-Core] Support for RETAIN on Tue, 23 Nov 2021 11:50:24 GMT]]></title><description><![CDATA[<p dir="auto">The MQTT Adafruit forum told me:  "An automatic process in order to synchronize the subscriber without any data loss?<br />
You can - please see this documentation about retained values here:<br />
[<a href="https://io.adafruit.com/api/docs/mqtt.html#retained-values" target="_blank" rel="noopener noreferrer nofollow ugc">https://io.adafruit.com/api/docs/mqtt.html#retained-values</a>](link url) “</p>
<p dir="auto">Checking the Github I've found an open issue about support of the MQTT retain Flag in M5 UIFlow code. See: [<a href="https://github.com/m5stack/UIFlow-Code/issues/1" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/UIFlow-Code/issues/1</a>](link url)</p>
<p dir="auto">My PAHO subscriber client currently displays a zero value in the retain flag returned from the M5 publisher and Adafruit broker. Do you know the status of this issue?</p>
]]></description><link>https://community.m5stack.com/post/15572</link><guid isPermaLink="true">https://community.m5stack.com/post/15572</guid><dc:creator><![CDATA[falbriard]]></dc:creator><pubDate>Tue, 23 Nov 2021 11:50:24 GMT</pubDate></item><item><title><![CDATA[Reply to [MQTT-Core] Support for RETAIN on Mon, 11 Oct 2021 15:51:42 GMT]]></title><description><![CDATA[<p dir="auto">I need it too, in UIFlow.</p>
]]></description><link>https://community.m5stack.com/post/15099</link><guid isPermaLink="true">https://community.m5stack.com/post/15099</guid><dc:creator><![CDATA[saiaman01]]></dc:creator><pubDate>Mon, 11 Oct 2021 15:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to [MQTT-Core] Support for RETAIN on Fri, 03 Sep 2021 14:23:59 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://community.m5stack.com/topic/1595/mqtt-subscribes-on-uiflow">https://community.m5stack.com/topic/1595/mqtt-subscribes-on-uiflow</a></p>
]]></description><link>https://community.m5stack.com/post/14796</link><guid isPermaLink="true">https://community.m5stack.com/post/14796</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Fri, 03 Sep 2021 14:23:59 GMT</pubDate></item><item><title><![CDATA[Reply to [MQTT-Core] Support for RETAIN on Fri, 03 Sep 2021 14:11:20 GMT]]></title><description><![CDATA[<p dir="auto">What all have you tried and are you using uiFlow or Arduino?</p>
<p dir="auto">I'm pretty sure they implemented it a while back, as I originally requested it more than a year ago. I haven't tested it recently, but I believe it was working before. Let me do some digging and I'll see what I can come up with.</p>
]]></description><link>https://community.m5stack.com/post/14795</link><guid isPermaLink="true">https://community.m5stack.com/post/14795</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Fri, 03 Sep 2021 14:11:20 GMT</pubDate></item><item><title><![CDATA[Reply to [MQTT-Core] Support for RETAIN on Fri, 03 Sep 2021 01:03:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi: Is there an update to this request? It seems to me that this would be very easy fix ... just adding the 'retain flag' parameter to mqtt messages. This is a very essential feature for mqtt auto-discovery with remote clients (such as Home Assistant). Without retain, Home Assistant loses all the configuration details about the M5Stack device after every HA reboot. The M5stack becomes 'unavailable' to HA and it's only after rebooting M5Stack that the device becomes available again.</p>
]]></description><link>https://community.m5stack.com/post/14789</link><guid isPermaLink="true">https://community.m5stack.com/post/14789</guid><dc:creator><![CDATA[marcvl]]></dc:creator><pubDate>Fri, 03 Sep 2021 01:03:52 GMT</pubDate></item></channel></rss>