thebasti0n / umqtt_async Goto Github PK
View Code? Open in Web Editor NEWA simple async mqtt client for Micropython.
License: MIT License
A simple async mqtt client for Micropython.
License: MIT License
Thanks for a great async MQTT implementation. I particularly like the decoupling from wifi/networking. I have got this working nicely on a RP Pico W connecting to Mosquitto. I had a slight issue on connecting. The on_connection_cb kept firing repeatedly in connect(). It was due to message_handler() -> check_for_messages() setting is_connected to False when res = 49 or 50. This in turn causes keep_alive_task to break out of the while loop. I simply removed:
umqtt_async/umqtt_async/umqtt_async.py
Lines 320 to 321 in 18004ae
I'm not sure what codes 49 or 50 are??
umqtt_async/umqtt_async/umqtt_async.py
Lines 229 to 230 in 18004ae
umqtt_async/umqtt_async/umqtt_async.py
Lines 329 to 335 in 18004ae
umqtt_async/umqtt_async/umqtt_async.py
Lines 240 to 244 in 18004ae
# res = 49 or 50
->
umqtt_async/umqtt_async/umqtt_async.py
Lines 320 to 321 in 18004ae
umqtt_async/umqtt_async/umqtt_async.py
Lines 338 to 346 in 18004ae
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.