In my project I have a set of sensors in a local network that should communicate with a Raspberry Pi 3 and then with a distant MQTT broker.
Since I'm using ESP8266 for the sensor nodes I thought I would make the esp nodes MQTT clients that communicate with the broker directly through the pi's internet connection. But I need the pi to have access to the sensors' data from the local nodes as well as data from sensors linked to it.
So I would like the best solution to implement such a communication. I thought of adding a broker to the Pi that would be bridged to the distant broker as well as publish MQTT messages to a python program running on the Raspberry.
Is there a way to avoid putting another broker on the Pi?
Is there a better solution to do this?
Will the broker consume too much memory?
Knowing that I may need to stream camera frame data as well.