<?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[Publish mqtt to AWS Iot from UiFlow]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm wondering if it's possible to publish messages to an MQTT topic on AWS IOT.<br />
Here's how I'm initializing my MQTT session</p>
<p dir="auto">m5mqtt = M5mqtt('MY_DEVICE_NAME', 'IOT_CORE_ENDPOINT', 8883, '', '', 4000, ssl = True, ssl_params = {'key': "PATH_TO_MY_PRIVATE_KEY", 'cert': "PATH_TO_MY_CERTIFICATE"})</p>
<p dir="auto">But it doesn't work. Any suggestions ?<br />
Thanks for your help</p>
<p dir="auto">Thanks,</p>
]]></description><link>https://community.m5stack.com/topic/2527/publish-mqtt-to-aws-iot-from-uiflow</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 09:26:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2527.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Nov 2020 17:28:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Publish mqtt to AWS Iot from UiFlow on Sun, 03 Jan 2021 06:30:00 GMT]]></title><description><![CDATA[<p dir="auto">I am also stuck trying to get this to work. Some research reveals that there may be a ca_certs parameter required to include Amazon's root CA.  I've tried it like this but no luck:</p>
<pre><code>while True:
  output.setText('Setting up mqtt')
  m5mqtt = M5mqtt('m5stick', 'a2zey9c7ts6fdf-ats.iot.us-west-2.amazonaws.com', 1883, '', '', 300, ssl = True, ssl_params = {'key': "/flash/res/priv.key", 'cert': "/flash/res/cert.pem", 'ca_certs': "/flash/res/ca.pem"})
  m5mqtt.subscribe(str(''), fun__)
  output.setText('starting mqtt')
  m5mqtt.start()
  output.setText('publishing hello world')
  m5mqtt.publish(str('test'),str('hello world'))
  output.setText('sent hello world')
  wait(1)
  wait_ms(2)
</code></pre>
<p dir="auto">Can anyone from m5stack confirm whether ca_certs is a supported ssl parameter?</p>
]]></description><link>https://community.m5stack.com/post/11514</link><guid isPermaLink="true">https://community.m5stack.com/post/11514</guid><dc:creator><![CDATA[greenleaf]]></dc:creator><pubDate>Sun, 03 Jan 2021 06:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to Publish mqtt to AWS Iot from UiFlow on Mon, 30 Nov 2020 03:30:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
Could you try with the ssl settings disabled to see if it works? I'm wondering if it's SSL certificate path issues or your AWS server, have you copied the ssl key and certificate to the M5Stack device? make sure you import it in the right directory.</p>
]]></description><link>https://community.m5stack.com/post/10938</link><guid isPermaLink="true">https://community.m5stack.com/post/10938</guid><dc:creator><![CDATA[Zontex]]></dc:creator><pubDate>Mon, 30 Nov 2020 03:30:43 GMT</pubDate></item></channel></rss>