Implementing MQTT using Micropython and ESP32
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
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.
Glad it helped!.
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!
Glad it helped!
Thank you
You're welcome
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?
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!
Good afternoon, do you know how to publish in several fields at the same time?
Btw you video is great!
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.
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()
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.
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!.
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?
kindly provide the source code thank you
Hi!, Please Check description for source code.Thanks
Thanks
@@adtechknow2761 getting this error
File "umqtt/simple.py", line 67, in connect
try setting SERVER = "mqtt3.thingspeak.com" in the code