<?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 connection]]></title><description><![CDATA[<p dir="auto">I'm having difficulty connecting my Core Basic to MQTT using UIFlow 2.0. Here are the pertinent code blocks:<br />
<img src="/assets/uploads/files/1726622234842-uiflow_setup.png" alt="uiflow_setup.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1726622251296-uiflow_subscribe.png" alt="uiflow_subscribe.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">When I run it, I get the following error.</p>
<pre><code>umqtt.py line 71. in connectOSerror: -203
</code></pre>
<p dir="auto">Looking at the github, this line is the middle line of this statement for the connection procedure Connect():</p>
<pre><code>if self.user is not None:
    sz += 2 + len(self.user) + 2 + len(self.pswd)
    msg[6] |= 0xC0
</code></pre>
<p dir="auto">It also references the line of code for this connection block in my setup:</p>
<pre><code>mqtt_client.connect(clean_session=True)
</code></pre>
<p dir="auto">I'm trying to connect to a Mosquitto broker on a raspberry pi that allows anonymous connection (no user/pass). It appears that error stems from the user/pass variables, but they are set as None in the block so why does this even trigger? Regardless, I'm at an impasse here on how to solve the issue. Any help would be appreciated.</p>
]]></description><link>https://community.m5stack.com/topic/6812/mqtt-connection</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 10:03:31 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6812.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Sep 2024 01:21:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MQTT connection on Wed, 25 Sep 2024 07:34:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/146768">@travisstdenis</a></p>
<p dir="auto">thank you for reporting back. I am glad to hear you got it working.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/26503</link><guid isPermaLink="true">https://community.m5stack.com/post/26503</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 25 Sep 2024 07:34:14 GMT</pubDate></item><item><title><![CDATA[Reply to MQTT connection on Wed, 25 Sep 2024 01:33:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> that worked! So it was just the addition of those other WiFi blocks that did it. The Serial output had said Wifi connected before, but I guess not.</p>
]]></description><link>https://community.m5stack.com/post/26499</link><guid isPermaLink="true">https://community.m5stack.com/post/26499</guid><dc:creator><![CDATA[travisstdenis]]></dc:creator><pubDate>Wed, 25 Sep 2024 01:33:07 GMT</pubDate></item><item><title><![CDATA[Reply to MQTT connection on Wed, 25 Sep 2024 04:32:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/146768">@travisstdenis</a></p>
<p dir="auto">please have a look at my example for <a href="http://test.mosquitto.org" target="_blank" rel="noopener noreferrer nofollow ugc">test.mosquitto.org</a> and <a href="http://io.adafruit.com" target="_blank" rel="noopener noreferrer nofollow ugc">io.adafruit.com</a> in the UIFlow2 Project Zone called: <em>M5Core_MQTT_WLAN_UIFlow2.1.4</em></p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/26497</link><guid isPermaLink="true">https://community.m5stack.com/post/26497</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 25 Sep 2024 04:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to MQTT connection on Tue, 24 Sep 2024 21:16:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> I have the "MQTT Apply For Messaging" block in the Loop. Everything I have seen has the connection parts in the Setup. Are you saying I need to have the MQTT Init block from the setup in the Loop?</p>
]]></description><link>https://community.m5stack.com/post/26496</link><guid isPermaLink="true">https://community.m5stack.com/post/26496</guid><dc:creator><![CDATA[travisstdenis]]></dc:creator><pubDate>Tue, 24 Sep 2024 21:16:17 GMT</pubDate></item><item><title><![CDATA[Reply to MQTT connection on Tue, 24 Sep 2024 21:14:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> i couldn't get a connection to <a href="http://test.mosquitto.org" target="_blank" rel="noopener noreferrer nofollow ugc">test.mosquitto.org</a> but i could for Adafruit. I setup this connection<br />
<img src="/assets/uploads/files/1727212140609-uiflow_setup_2.png" alt="uiflow_setup_2.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I get a nonsense error on the screen about some unrelated rectangle UI block in the setup about</p>
<pre><code>TypeError: extra keyword arguments given
</code></pre>
<p dir="auto">When I look at the serial data i get:</p>
<pre><code>&gt;&gt;&gt; E (8014) mqtt_client: Error create mqtt task
E (23515) mqtt_client: esp_mqtt_client_init(800): Memory exhausted
E (23515) mqtt_client: Client was not initialized
E (23516) mqtt_client: Client was not initialized
</code></pre>
<p dir="auto">I have tried this several ways. with and without the https:// in the server, with keepalive values of 0 or 300, in and out of the "if connected to wifi" block. The image shows the only way I've gotten some kind of response that gets me closer.</p>
]]></description><link>https://community.m5stack.com/post/26495</link><guid isPermaLink="true">https://community.m5stack.com/post/26495</guid><dc:creator><![CDATA[travisstdenis]]></dc:creator><pubDate>Tue, 24 Sep 2024 21:14:13 GMT</pubDate></item><item><title><![CDATA[Reply to MQTT connection on Thu, 19 Sep 2024 04:58:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/146768">@travisstdenis</a> The connection blocks need to bee in the loop not the setup.</p>
]]></description><link>https://community.m5stack.com/post/26466</link><guid isPermaLink="true">https://community.m5stack.com/post/26466</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 19 Sep 2024 04:58:19 GMT</pubDate></item><item><title><![CDATA[Reply to MQTT connection on Wed, 18 Sep 2024 14:36:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/146768">@travisstdenis</a></p>
<p dir="auto">have you tried to connect to <a href="http://test.mosquitto.org" target="_blank" rel="noopener noreferrer nofollow ugc">test.mosquitto.org</a>? Does that work or are you getting the same error?</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/26462</link><guid isPermaLink="true">https://community.m5stack.com/post/26462</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 18 Sep 2024 14:36:48 GMT</pubDate></item></channel></rss>