<?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[Issue with Publishing and Subscribing in MQTT]]></title><description><![CDATA[<p dir="auto">[link text](link url)Hello everyone,</p>
<p dir="auto">I'm facing issues with both subscription and publishing in MQTT. When publishing, it does not allow me to send alphanumeric values. If I use a numeric string and then convert it to an integer, it works correctly, as shown in the following example:</p>
<p dir="auto">MQTT publish topic "coreS3/state", "5", Qos 1</p>
<p dir="auto">However, when I try to publish any variable, whether numeric or text, the system simply ignores the command without displaying errors. For example:</p>
<p dir="auto">MQTT publish topic "coreS3/state", numeric or text variable, Qos 1</p>
<p dir="auto">If instead of a variable I use a fixed string, the command executes without issues.</p>
<p dir="auto">I have spent a lot of time trying to solve this, but I haven't found a clear answer. Has anyone faced a similar issue or has any suggestions on how to fix it?</p>
<p dir="auto">I appreciate any help you can provide.</p>
<p dir="auto"><img src="/assets/uploads/files/1745693474771-uiflow2_block_1745693328801.png" alt="uiflow2_block_1745693328801.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">[C:\Users\faria\Downloads\MQTT_Relay_S3_BAD.m5f2]</p>
]]></description><link>https://community.m5stack.com/topic/7526/issue-with-publishing-and-subscribing-in-mqtt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 23:04:53 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7526.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Apr 2025 18:55:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Issue with Publishing and Subscribing in MQTT on Sun, 27 Apr 2025 19:43:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> Hello , Your code worked perfectly. I really appreciate the time and effort you put into helping me—it means a lot! Thank you!<br />
Roberto</p>
]]></description><link>https://community.m5stack.com/post/28978</link><guid isPermaLink="true">https://community.m5stack.com/post/28978</guid><dc:creator><![CDATA[Robertof]]></dc:creator><pubDate>Sun, 27 Apr 2025 19:43:05 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Publishing and Subscribing in MQTT on Sat, 26 Apr 2025 23:12:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/robertof" aria-label="Profile: Robertof">@<bdi>Robertof</bdi></a></p>
<p dir="auto">hmm, using variables in MQTT publish works for me.</p>
<p dir="auto">How are you testing your code? Make sure your test software uses a different MQTT client id than your UIFlow2 code, else the first registered client gets kicked out.</p>
<p dir="auto">BTW: my example is in the Project Zone, named <em>M5CoreS3_MQTT_4Relay_UIFlow2.2.5</em></p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/28973</link><guid isPermaLink="true">https://community.m5stack.com/post/28973</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 26 Apr 2025 23:12:39 GMT</pubDate></item></channel></rss>