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:
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.
Jump to solution
5 Replies
Marvee Amasi
Marvee Amasi8mo ago
@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
Joseph Ogbonna
Joseph Ogbonna8mo ago
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.
wafa_athmani
wafa_athmani8mo ago
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 ...
Joseph Ogbonna
Joseph Ogbonna8mo ago
Yes. It's a great platform. You can use it
Enthernet Code
Enthernet Code8mo ago
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
Want results from more Discord servers?
Add your server