Hi Techies, is it possible to run a message broker inside of ESP32 ??, my purpose is to pass JSON-type messages to all my android clients which will connect to the ESP32-AP.
Eclipse MQTT Broker cannot run on a ESP32.
Yes, take a look at: GitHub - hsaturn/TinyMqtt: ESP 8266 / 32 / WROOM Small footprint Mqtt Broker and Client
Why do you want MQTT to run on the ESP?
It can send/receive messages via MQTT and the broker could be a server anywhere - it seems unusual to want it to be running on a micro controller.
Your topic was MOVED to its current forum category as it is more suitable than the original
Because in my set up I use many ESP32 chips which serve as access points as well as points of reference. So it is important that I have a message broker on every ESP32 chip since the communication has to be routed from them.
My alternative was to run a web server in the ESP32 that simply sends a JSON to everyone(android client) connected to the ESP32-AP. Depends on what is easier to implement.
Sorry but I don't understand why. Surely you just need one broker that all of the ESP32s can connect to
Why not just load one MQTT Broker and the rest of the ESP32's are MQTT clients to the single broker?
This is soo that the android clients can communicate through the ESP32 like it is the exchange point.
Good luck.
what is needed is for the android to have a central exchange point, because I am using the ESP32'S to triangulate the location.
Only 1 MQTT Broker is required to be the central exchange point all the other esp32's can be clients to the one broker.
I have 13 ESP32's serving as clients and one RPi serving as the Broker.
So you only need a single MQTT broker
thanks man , so can I use the ESP32 as the router/broker for sending messages to all devices connected to the ESP32's AP ?
Sorry. I didn't see that you have quoted my answer.
Yes, just use an ESP as broker then connect all other clients to it.
Just verify in library documentation the limitations.
Have you used this ? does it support all variations of ESP32 ? @FernandoGarcia
What is "this" ?
Thanks
I did a small test with NodeMCU.
For more details you have to check the documentation or ask for the author.