Это видео недоступно.
Сожалеем об этом.
Pico W - MicroPython MQTT tutorial using umqtt.simple library
HTML-код
- Опубликовано: 17 авг 2024
- This post/video will show you how to connect, publish, and subscribe to your MQTT broker using the umqtt.simple library in MicroPython and a Raspberry Pi Pico W board.
WriteUp:
www.donskytech...
Code:
github.com/don...
How to test MQTT using MQTTX?:
• How to test MQTT using...
Contents of the Video:
0:00 - Intro
0:45 - How to install umqqt.simple library
1:31 - Project files
1:55 - What are we going to do?
3:14 - MQTT Publish Demo
4:09 - MQTT Subscribe Demo
5:19 - DonskyTech Intro Plug
5:29 - Code
8:31 - Outro
If you like my post or videos then please consider subscribing to my channels and sharing them with your friends:
Website: www.donskytech...
RUclips: / donskytech
Facebook: / donskytech
Twitter: / donskytech
If you are generous and think I have helped you, please consider buying me a coffee. 🙂
Buy Me a Coffee:
buymeacoffee.c...
#mqtt
#mosquitto
#micropython
#picow
#raspberrypipicow
#umqttsimple
#mqttx
I've been dabbling a little with Micropython handling of MQTT pub/sub. I look forward to your videos. I just found this channel. Thank you so much for your content. Looking through your past videos soon.
Yeah, I do like the simplicity of MicroPython. Glad you like my IoT-oriented channel. I am planning to write more content soon! Happy Exploring!
@@DonskyTech in this video @6:36 Lines 10 and 11; b"led", b""emperature." Is the 'b" for binary, bytes, bits? I thought Micropython could figure that out on its own?
@@marinehm yes they are in bytes as the function is expecting that they be pass in bytes format.
What happens during an internet outage at the Pi end?
How does the remaining messages transfer to the broker after the Pi comes online?
Nice explanation. Thanks for the video.
Great content. I am following along with both your pico W and esp32 micropython content. The externally imported libs for pico W are much more problematic to install than for the esp32. The switch from upip to mip to install libs on the pico seems to have broken the Thonny lib installer -at least on my latest micropython firmware for the pico W. Thanks, and keep the excellent tutorials coming...Please consider doing a Microdot (micropython web framework like Flask) tutorial for the pico W.
Sorry, I see your Microdot tutorial...watching it now. Thanks.
It looks like you are finding the basic (Paul McWhorter) and advanced (here) micropython videos. I am doing the same. Its amazing how much I pick up from both channels.
@@keithlohmeyerYes, this Donsky Tech channel and his separate project writeups are about the best I have found. I prefer esp32 micropython projects (more libraries available ), but the pico (PIO?) is interesting. Thanks for commenting and hope to hear more from you, we seem to have similar projects...
Sadly, here in Indonesia - pico W more 3x esp8266 in price.
Nice tutorial anw !!
Yes, same situation in the Philippines. These ESP8266 boards are really cheap. But maybe for other parts of the world, the Raspberry Pi Pico W is their go-to board. It's good that we have more options to choose. 😄
It is crazy how cheap the esp boards are from aliexpress. Ten years ago we thought it was a deal to buy an Arduino Uno for $30 now you can get an esp for a couple of dollars.
@@keithlohmeyer I have to really agree on these ESP boards. They are cheap but pack excellent features. I have not touched other features of this device actually and certainly would like to create and share my learnings.
In the future, make this board tutorial - since it is cheap 😀 - #alternative board, beginner, hobbiest - ruclips.net/video/uBMTPjZRFto/видео.html
@@TheJavaSync Maybe, if I can get my hands on that board. 😁
I can't get the umqtt.simple library to install on pi pico w, fais on raspbian vm, also on win10. Is there something wrong with thony?
I used mpremote if thonny hangs up sometimes.
If the WiFi connection is broken does it reconnect? And the same with connection to a MQTT broker.
No, I think you need to reset your device. If you need such functionality then you can use the micropython_as asynchronous library.
Hi do you know how to add ssl files, if so could you please make a video of that so that I could to get how communication can get encrypted
Hey, let me check when I can do this. I do have a project related to this one.
@@DonskyTech ok kindly try to post as early as possible.. Thanks
Hi I have executed all the steps mentioned but I'm facing Error: [Errno 113] ECONNABORTED.. Can you assist me with this?
The device i'm using is ESP32 Node MCU
Note: MQTT broker is up and running and i'm trying this on my ubuntu machine
Hey, first question... did you edit the boot.py and made sure that an IP address was assigned to your MicroPython device?
@@DonskyTechyes all are done as per your video.. pls assist me to overcome from this error code
@@Parthi97 There are lots of causes for this error and I cannot guess which issue you might be having. But maybe check if you could connect to your broker by simple mosquito pub and sub command.