I want to establish communication between ESP and Raspberry Pi using MQTT
Good evening,
I want to establish communication between ESP and Raspberry Pi using MQTT to take readings from the GPS and send them to each other, dividing the topics based on the distance between them. Can anyone help me with a similar project or assist me in general?
Solution:Jump to solution
MQTT network with Raspberry Pi and ESP32 for IOT projects
A demo MQTT project with source code for setting up MQTT network. Using Raspberry Pi as broker and ESP32 microcontrollers as clients.
5 Replies
@wafa_athmani MQTT is a great choice for ESP-Pi communication with GPS data.
Distance-based topics are a clever way to organize messages.
Try to search online for "ESP8266 MQTT Raspberry Pi GPS" or similar keywords to find project examples and tutorials.
Solution
This would be of great help.
https://helloworld.co.in/article/mqtt-raspberry-pi-esp32
MQTT network with Raspberry Pi and ESP32 for IOT projects
A demo MQTT project with source code for setting up MQTT network. Using Raspberry Pi as broker and ESP32 microcontrollers as clients.
When i was searching i came across something called node red ... Do u have any information about it and how it would help me in this ...
Yes. It's a great platform. You can use it
You need an MQTT broker to facilitate communication between the devices. You can set up an MQTT broker on your Raspberry Pi itself or use a cloud-based broker service.
The ESP and Raspberry Pi need to establish a connection to the MQTT broker, Once the Raspberry Pi receives the GPS data, you can process it on the Pi using Python or any other programming language of your choice to send the data back and forth between them