Replies: 7 comments 2 replies
-
Hello @mmliam , Just right now I wanted to ask the same to people. I read that in "Python" the most used library is "paho.mqtt" and I wanted to know which is the most used in "MicroPython" to syncro the job and start to study how to send packets over Internet like "Open Door", etc. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Have a peep and the mqtt-as.py from Peter Hinch. It has the advantage of being an asyncio implementation and its worth a consideration for that aspect, as well as being a robust mqtt client. You can read all about it at https://github.com/peterhinch/micropython-mqtt |
Beta Was this translation helpful? Give feedback.
-
"umqttsimple" is not suitable for standard python. For standard python, you have to use "paho.mqtt" library. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, "umqttsimple" is a MicroPython-specific library designed for IoT devices like the ESP32. It is not directly supported by standard Python, as it is tailored for the MicroPython environment and limitations. To work with MQTT in standard Python, it is best to use libraries such as "paho.mqtt", which are designed for use in this environment. 😊 |
Beta Was this translation helpful? Give feedback.
-
Thanks to everybody. I will start using "paho.mqtt" in my PC/mobile application and in my ESP32 I will use @peterhinch "async MQTT" library. Thanks again. Best regards. |
Beta Was this translation helpful? Give feedback.
-
hello everyone, im trying to use this code to connect to mqtt server: but i receive this error OSError: [Errno 110] ETIMEDOUT, |
Beta Was this translation helpful? Give feedback.
-
>>> mip.install("umqtt.simple")
Installing umqtt.simple (latest) from https://micropython.org/pi/v2 to /lib
Copying: /lib/umqtt/simple.mpy
Done
>>> from umqtt import simple
>>> |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using the MQTT import "umqttsimple" quite successfully in a ESP32 application, and I'm currently using "paho.mqtt" in standard Python. Does anyone know whether "umqttsimple" would be compatible with standard Python?
MM
Beta Was this translation helpful? Give feedback.
All reactions