Implementing MQTT using Micropython and ESP32

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • The videos shows the implementation of MQTT using Micropython and ESP32.The ThingSpeak IOT platform is used to visualize the data.
    The code is available at Blog techknowsurf.b...
    ESP32 Boards:amzn.to/3me4Had

Komentáře • 19

  • @jimcraig5727
    @jimcraig5727 Před 5 měsíci

    Excellent step by step instruction video. MQTT to Adafruit was simple enough but I struggled with Thingspeak until watching your easy to follow instructions. Soon became apparent what I was missing. Thankyou.

  • @marinehm
    @marinehm Před 2 lety

    This video gave me the proper tools: I was able to connect to my MQTT broker running on a RaspberryPi3b and publish a topic from an ESP8266. Great video!

  • @fatenbouallagui
    @fatenbouallagui Před 2 lety

    Thank you

  • @nunomarinho3699
    @nunomarinho3699 Před 2 lety

    Good afternoon, do you know why when i turn off the Thonny the micro stop sending data to mqtt server and when i plug it again i need to program it from the start?

    • @adtechknow2761
      @adtechknow2761  Před 2 lety

      Save the code in micro. Go to file then click save, save the code as main. py in micro. Then press reset on the esp board. Please try this. Thanks!

  • @nunomarinho3699
    @nunomarinho3699 Před 2 lety

    Good afternoon, do you know how to publish in several fields at the same time?
    Btw you video is great!

    • @adtechknow2761
      @adtechknow2761  Před 2 lety

      You can go through this link www.eclipse.org/paho/index.php?page=clients/python/docs/index.php and see this part Multiple
      Publish multiple messages to a broker, then disconnect cleanly.
      Thanks.

  • @AlexFamilyBonding
    @AlexFamilyBonding Před 9 měsíci +1

    Traceback (most recent call last):
    File "", line 56, in
    File "", line 36, in publish_to_thingspeak
    File "umqtt/simple.py", line 108, in connect
    IndexError: bytes index out of range --- line - client.connect() client = MQTTClient(client_id, THINGSPEAK_MQTT_SERVER, user=THINGSPEAK_MQTT_USER, password="")
    try:
    client.connect()

  • @Urrhrjrjj
    @Urrhrjrjj Před 2 lety

    Good afternoon Prof. congratulations for your teaching I learned a lot from the master! But I am no longer able to access mqttt with micropython in thingspeak , could you make a more current video ? I believe something has changed I don't know what it is ! I've been looking for a solution for weeks and I can't find it.
    the error it gives is (indexError bytes out of range) I have to use this in my TCC1 , if it's not too much to ask please show me a way.

    • @adtechknow2761
      @adtechknow2761  Před 2 lety

      HI,
      I have tested the same code as shown in the video except two changes 1. Broker Name: mqtt3.thingspeak.com 2. Function api client = MQTTClient(CLIENT_ID, SERVER,PORT,USER,PASSWORD,60) .The code is getting succesfully connected with data transfer.if interested,Visit the blog techknowsurf.blogspot.com/2021/12/ImplementingMQTTusingMicropythonandESP32.html.
      Hope this helps you.Thanks!.

  • @marinehm
    @marinehm Před 2 lety

    Would you be willing to help me write my code in simple steps with comments so other users can read and understand what the code is doing as they read through it?

  • @ML.ArtificialIntelligence

    kindly provide the source code thank you