Это видео недоступно.
Сожалеем об этом.

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

Комментарии • 27

  • @marinehm
    @marinehm Год назад +1

    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.

    • @DonskyTech
      @DonskyTech  Год назад

      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!

    • @marinehm
      @marinehm Год назад

      @@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?

    • @DonskyTech
      @DonskyTech  Год назад

      @@marinehm yes they are in bytes as the function is expecting that they be pass in bytes format.

    • @LifeGeneralist
      @LifeGeneralist 3 месяца назад +1

      What happens during an internet outage at the Pi end?
      How does the remaining messages transfer to the broker after the Pi comes online?

  • @keithlohmeyer
    @keithlohmeyer Год назад +2

    Nice explanation. Thanks for the video.

  • @quaternion-pi
    @quaternion-pi Год назад +2

    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.

    • @quaternion-pi
      @quaternion-pi Год назад

      Sorry, I see your Microdot tutorial...watching it now. Thanks.

    • @keithlohmeyer
      @keithlohmeyer Год назад +1

      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.

    • @quaternion-pi
      @quaternion-pi Год назад +1

      @@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...

  • @TheJavaSync
    @TheJavaSync Год назад +1

    Sadly, here in Indonesia - pico W more 3x esp8266 in price.
    Nice tutorial anw !!

    • @DonskyTech
      @DonskyTech  Год назад

      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. 😄

    • @keithlohmeyer
      @keithlohmeyer Год назад +1

      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.

    • @DonskyTech
      @DonskyTech  Год назад +1

      @@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.

    • @TheJavaSync
      @TheJavaSync Год назад +1

      In the future, make this board tutorial - since it is cheap 😀 - #alternative board, beginner, hobbiest - ruclips.net/video/uBMTPjZRFto/видео.html

    • @DonskyTech
      @DonskyTech  Год назад +1

      @@TheJavaSync Maybe, if I can get my hands on that board. 😁

  • @MrMinnesota99
    @MrMinnesota99 9 месяцев назад +1

    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?

    • @DonskyTech
      @DonskyTech  9 месяцев назад

      I used mpremote if thonny hangs up sometimes.

  • @mrsvvmrsvv7400
    @mrsvvmrsvv7400 11 месяцев назад +1

    If the WiFi connection is broken does it reconnect? And the same with connection to a MQTT broker.

    • @DonskyTech
      @DonskyTech  11 месяцев назад

      No, I think you need to reset your device. If you need such functionality then you can use the micropython_as asynchronous library.

  • @Parthi97
    @Parthi97 Год назад

    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

    • @DonskyTech
      @DonskyTech  Год назад

      Hey, let me check when I can do this. I do have a project related to this one.

    • @Parthi97
      @Parthi97 Год назад

      @@DonskyTech ok kindly try to post as early as possible.. Thanks

  • @Parthi97
    @Parthi97 Год назад

    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

    • @DonskyTech
      @DonskyTech  Год назад

      Hey, first question... did you edit the boot.py and made sure that an IP address was assigned to your MicroPython device?

    • @Parthi97
      @Parthi97 Год назад

      @@DonskyTechyes all are done as per your video.. pls assist me to overcome from this error code

    • @DonskyTech
      @DonskyTech  Год назад

      @@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.