pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
334 stars 375 forks source link

MQTT Client connect to Azure IoTHub "IndexError: bytes index out of range" error #93

Open sw-dev-code opened 5 years ago

sw-dev-code commented 5 years ago

What are the steps to reproduce this issue?

  1. Connect to WiFi network
  2. Call MQTTClient(...) with Azure IoTHub credentials.
  3. Call client.connect().

What happens?

Following error appears:

Traceback (most recent call last): File "main.py", line 45, in File "/flash/lib/mqtt.py", line 85, in connect IndexError: bytes index out of range

What were you expecting to happen?

I'm expecting successfully MQTT connect to Azure IoTHub.

What versions of software are you using?

(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')

sw-dev-code commented 5 years ago

Any updates on this issue?