<?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[Core2 MQTT fails to subscribe on SSL=True]]></title><description><![CDATA[<p dir="auto">Hello everyone</p>
<p dir="auto">I have trouble with connecting my Core2 to HiveMQ using MQTT.</p>
<p dir="auto">What works well so far:</p>
<ul>
<li>Connecting to a public MQTT broker (hivemq or mosquitto) with no auth (and no SSL) works perfectly fine.</li>
<li>Connecting to my private cloud broker works and I can send messages (from core2 to hivemq) when using the 'execute code' block.</li>
</ul>
<p dir="auto">What does not work and drives me kind of crazy is that I don't receive any messages on the topics I subscribed to -- when being connected to the private cloud instance using SSL.</p>
<p dir="auto">Any hints on what is wrong are greatly appreciated :)</p>
<p dir="auto">Cheers, Alex</p>
<p dir="auto"><img src="/assets/uploads/files/1651312905811-screenshot-2022-04-30-120111-resized.png" alt="0_1651312904171_Screenshot 2022-04-30 120111.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/4256/core2-mqtt-fails-to-subscribe-on-ssl-true</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 23:54:33 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4256.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Apr 2022 10:03:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core2 MQTT fails to subscribe on SSL=True on Tue, 03 May 2022 09:10:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/19828">@alexanders</a> thanks to you question, I have now added a paragraph about this to my book which will hopefully get an update by the end of the month!</p>
]]></description><link>https://community.m5stack.com/post/17378</link><guid isPermaLink="true">https://community.m5stack.com/post/17378</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 03 May 2022 09:10:57 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 MQTT fails to subscribe on SSL=True on Tue, 03 May 2022 07:01:15 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> and <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> for your swift responses! Good point with the subscribe statement -- and thanks for pointing out that I need to set keys and certs, I wasn't aware of that.</p>
<p dir="auto">I'm sure your answers will help others, too :)</p>
<p dir="auto">Cheers, Alex</p>
]]></description><link>https://community.m5stack.com/post/17376</link><guid isPermaLink="true">https://community.m5stack.com/post/17376</guid><dc:creator><![CDATA[alexanders]]></dc:creator><pubDate>Tue, 03 May 2022 07:01:15 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 MQTT fails to subscribe on SSL=True on Sun, 01 May 2022 07:38:02 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> said in <a href="/post/17353">Core2 MQTT fails to subscribe on SSL=True</a>:</p>
<blockquote>
<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a></p>
<p dir="auto">ah, ok, thank you for the information. I was not aware of that.</p>
<p dir="auto">Thanks<br />
Felix</p>
</blockquote>
<p dir="auto">No worries, it's not a well know feature.</p>
]]></description><link>https://community.m5stack.com/post/17354</link><guid isPermaLink="true">https://community.m5stack.com/post/17354</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 01 May 2022 07:38:02 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 MQTT fails to subscribe on SSL=True on Sat, 30 Apr 2022 19:04:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a></p>
<p dir="auto">ah, ok, thank you for the information. I was not aware of that.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17353</link><guid isPermaLink="true">https://community.m5stack.com/post/17353</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 30 Apr 2022 19:04:33 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 MQTT fails to subscribe on SSL=True on Sat, 30 Apr 2022 18:16:14 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><br />
If you check out the Execute Code block the params are different.<br />
For some reason there is an oddity with security lately that if SSL is set to true in MicroPython the the files are required.</p>
<p dir="auto">Also the main program functions need to be run in a loop placed after the MQTT Start block.</p>
]]></description><link>https://community.m5stack.com/post/17351</link><guid isPermaLink="true">https://community.m5stack.com/post/17351</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 30 Apr 2022 18:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 MQTT fails to subscribe on SSL=True on Sat, 30 Apr 2022 13:40:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a></p>
<p dir="auto">afaik, the client <code>keyFile</code> and <code>certFile</code> are optional and only required if the MQTT broker is setup to verify the MQTT client. Or am I missing something?</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17345</link><guid isPermaLink="true">https://community.m5stack.com/post/17345</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 30 Apr 2022 13:40:18 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 MQTT fails to subscribe on SSL=True on Sat, 30 Apr 2022 13:05:19 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/19828">@alexanders</a></p>
<p dir="auto">it looks like the generated micropython code is missing the statement to actually subscribe. I have to add something like below, in an <code>Execute Code</code> block, just before the <code>mqtt start</code> block to make the subscription work:</p>
<pre><code>m5mqtt.subscribe(str('kesabi'), fun_kesabi_)
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17342</link><guid isPermaLink="true">https://community.m5stack.com/post/17342</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 30 Apr 2022 13:05:19 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 MQTT fails to subscribe on SSL=True on Sat, 30 Apr 2022 11:20:46 GMT]]></title><description><![CDATA[<p dir="auto">Well, according to that image, you are missing the SSL codes, keys and certificates.</p>
]]></description><link>https://community.m5stack.com/post/17340</link><guid isPermaLink="true">https://community.m5stack.com/post/17340</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 30 Apr 2022 11:20:46 GMT</pubDate></item></channel></rss>