MQTT example in doc fails
ShanevanJ last edited by ShanevanJ
Noob question - when try this MQTT Example with new Wipy and latest firmware, it fails with this error
WiFi connection established >MQTT ERROR! function got multiple values for argument 'user' >ERROR! Could not connect to Pybytes! >Pybytes configuration read from /flash/pybytes_config.json >Connected to Wifi > >Traceback (most recent call last): > File "main.py", line 29, in <module> > File "/flash/lib/mqtt.py", line 28, in __init__ >OSError: [Errno 202] EAI_FAIL >Pycom MicroPython 1.20.1.r1 [v1.11-3138a13] on 2019-10-08; WiPy with ESP32 >Pybytes Version: 1.1.3
@nervencid I made it work using the simple mqtt library, to connect to Azure IoT Hub without using Pybytes. Have a look at this thread:
I have a similar problem, what is the true mqtt library ?
I dont' kno if is MQTTLib or mqtt.
Where can i find documentation about MQTTLib?
Or how i can work with mqtt, the examples here:
Are not working
ShanevanJ last edited by
errors - seems to work ok
I will test further and advise.
It may be useful to update the mqtt example from the docs as it wasted a whole day of head scratching to get around the issue?
jirkakrepl last edited by jirkakrepl
I recommend using latest firmware updater tool. And then..
I would try to flash the firmware with disabled Pybytes first. (unchecked Enable Pybytes checkbox)