<?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[Azure IoTHub MQTT connect issue]]></title><description><![CDATA[<h2>What are the steps to reproduce this issue?</h2>
<ol>
<li>Connect to WiFi network</li>
<li>Call <code>MQTTClient(...)</code> with Azure IoTHub credentials.</li>
<li>Call <code>client.connect()</code>.</li>
</ol>
<h2>What happens?</h2>
<p dir="auto">Following error appears:</p>
<blockquote>
<p dir="auto">Traceback (most recent call last):<br />
File &quot;<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a>&quot;, line 45, in<br />
File &quot;/flash/lib/mqtt.py&quot;, line 85, in connect<br />
IndexError: bytes index out of range</p>
</blockquote>
<h2>What were you expecting to happen?</h2>
<p dir="auto">I'm expecting successfully MQTT connect to Azure IoTHub.</p>
<h2>What versions of software are you using?</h2>
<p dir="auto">(sysname='LoPy4', nodename='LoPy4', release='1.18.1.r7', version='v1.8.6-849-d1c5ea9 on 2018-12-17', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1')</p>
]]></description><link>https://forum.pycom.io/topic/4345/azure-iothub-mqtt-connect-issue</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 15:50:35 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/4345.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Feb 2019 13:21:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Azure IoTHub MQTT connect issue on Tue, 05 Feb 2019 13:21:09 GMT]]></title><description><![CDATA[<h2>What are the steps to reproduce this issue?</h2>
<ol>
<li>Connect to WiFi network</li>
<li>Call <code>MQTTClient(...)</code> with Azure IoTHub credentials.</li>
<li>Call <code>client.connect()</code>.</li>
</ol>
<h2>What happens?</h2>
<p dir="auto">Following error appears:</p>
<blockquote>
<p dir="auto">Traceback (most recent call last):<br />
File &quot;<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a>&quot;, line 45, in<br />
File &quot;/flash/lib/mqtt.py&quot;, line 85, in connect<br />
IndexError: bytes index out of range</p>
</blockquote>
<h2>What were you expecting to happen?</h2>
<p dir="auto">I'm expecting successfully MQTT connect to Azure IoTHub.</p>
<h2>What versions of software are you using?</h2>
<p dir="auto">(sysname='LoPy4', nodename='LoPy4', release='1.18.1.r7', version='v1.8.6-849-d1c5ea9 on 2018-12-17', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1')</p>
]]></description><link>https://forum.pycom.io/post/25636</link><guid isPermaLink="true">https://forum.pycom.io/post/25636</guid><dc:creator><![CDATA[Milan]]></dc:creator><pubDate>Tue, 05 Feb 2019 13:21:09 GMT</pubDate></item><item><title><![CDATA[Reply to Azure IoTHub MQTT connect issue on Wed, 06 Feb 2019 10:42:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Just to let you know we are aware of this. Our MQTT libs were specifically written to support AWS. That said they should also work with Azure. I took a quick look last night into why they dont but ran out of time. I will be doing some more investigation today and hopefully will have a solution.</p>
]]></description><link>https://forum.pycom.io/post/25668</link><guid isPermaLink="true">https://forum.pycom.io/post/25668</guid><dc:creator><![CDATA[Paul Thornton]]></dc:creator><pubDate>Wed, 06 Feb 2019 10:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to Azure IoTHub MQTT connect issue on Wed, 06 Feb 2019 11:16:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3525">@Paul-Thornton</a> ,</p>
<p dir="auto">Glad to here that, it's very important to me to have this possibility with Pycom. All my devices should be connected to Azure.</p>
<p dir="auto">I've done some researching and found out that your MQTT libs are sending bytes that Azure doesn't understand. Short description of this is on the link: <a href="https://www.youtube.com/watch?v=pRqpKZ7mO1s" target="_blank" rel="noopener noreferrer nofollow">https://www.youtube.com/watch?v=pRqpKZ7mO1s</a></p>
]]></description><link>https://forum.pycom.io/post/25670</link><guid isPermaLink="true">https://forum.pycom.io/post/25670</guid><dc:creator><![CDATA[Milan]]></dc:creator><pubDate>Wed, 06 Feb 2019 11:16:16 GMT</pubDate></item></channel></rss>