no module named 'mqtt' !!!
-
Hello, I'm trying to follow the example given for mqtt , but I always get that error , is there someone who had the same problem ??
-
As Alex says it's an external library. The file needs to be present alongside your boot.py and main.py or in one of the folders in your search path. So when you don't have the mqtt.py file it gives that error.
-
Hi @YazIdo, the current documentation is out of date! Please download the mqtt.py file from here, upload it to your device and import it like below:
import mqtt
You might want to check out my youtube video explaining about how to use it.
https://www.youtube.com/watch?v=3NDPSbr5J14&index=3&list=PLS09TA19umCOavPeP_FoMHoCuCzjJUWQk&t=7s