Adding MQTT protocol as a core feature to Pico W and Pyboard D firmware #9530
Replies: 4 comments 7 replies
-
Thanks @miketeachman -- I had this on my TODO list to investigate. A friend just got into zigbee2mqtt, and I have a DIY zigbee/HA system at home that pre-dates zigbee2mqtt but it would be nice to replace with zigbee2mqtt and so this has been on my radar. I do really hope we can encourage more tutorials to be written that involve using things like MQTT rather than DIY web servers etc. Here's a bit of a brain dump of some things I wanted to understand:
Counterpoint... it's now really easy to install micropython-lib packages again via |
Beta Was this translation helpful? Give feedback.
-
@jimmo To expand on this a little, a usable official MQTT library would be wonderful but there are issues to consider. I would be happy to help with defining the task. A few salient points regarding any proposed solution:
I am not advocating for
|
Beta Was this translation helpful? Give feedback.
-
Great discussion and some excellent questions and points! ... but, I was hoping to limit the scope of this discussion to the pros and cons of simply making the WiFi capable boards, such as Pico W and Pyboard D boards, consistent with the ESP boards wrt to the existing MQTT implementation ( I think the topic of improving the existing MQTT implementation offered in micropython-lib is a much bigger topic, that deserves its own Discussion thread(s). Looking at consistency across ports: Is it important in MicroPython to have consistency when feasible? e.g.
OR
For me, consistency across ports seems preferred. Consistency makes it easier for users of MicroPython. For example, I support a tutorial repo containing examples describing how to use MQTT with the Thingspeak cloud database. For the Pyboard D, the tutorial requires special instructions on how to copy MQTT libraries to the board (soon to be updated with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The micropython-lib packages
umqtt.simple
andumqtt.robust
are included in the manifests for the ESP32 and ESP8266 ports, but are missing from other WiFi enabled boards such as the Pico W and the PyBoard D series.Is there a reason for that?
While it's possible to copy these MQTT packages to a board using tools such as
rshell
and the new awesomemip
, it would lower the barrier to using the MQTT protocol if these packages were included in the release firmware.Thoughts?
I'll volunteer to submit a PR if there is a favourable response to this idea.
For reference, adding the two MQTT packages adds 3640 bytes (+0.52%) to the Pico W binary and 3624 bytes (+0.34%) to the Pyboard D SF2 binary.
Beta Was this translation helpful? Give feedback.
All reactions