Page 1 of 1

ESP32 as MQTT broker?

Posted: Thu May 12, 2022 5:28 pm
by MJU20
I've seen in a flash an article that the ESP32 could be used as a MQTT broker.
Is this true?

Could this become a Flowcode component?

Re: ESP32 as MQTT broker?

Posted: Fri May 13, 2022 10:00 am
by BenR
Hello,

Yes I don't see why not, but it's not simple and security could be an issue. Making a component for a MQTT broker woulld be a fairly big job though certainly not impossible.

One question might be why when there are lots of maintained brokers out there already for free both on the internet and also locally on things like a RPI.

Re: ESP32 as MQTT broker?

Posted: Fri May 13, 2022 10:43 pm
by MJU20
BenR wrote:
Fri May 13, 2022 10:00 am
Hello,

Yes I don't see why not, but it's not simple and security could be an issue. Making a component for a MQTT broker woulld be a fairly big job though certainly not impossible.
Sounds good :-)
BenR wrote:
Fri May 13, 2022 10:00 am
One question might be why when there are lots of maintained brokers out there already for free both on the internet and also locally on things like a RPI.
Like so many things in life.. because it's possible :-)

No, I've had a RPI chip pack for Flowcode but never used it.
RPI's are at this moment not available because of chip shortage. Some sources say until 2023?

ESP32 are very cheap and very available. Also very powerful.
So why not make a component that can be used in FC versions after #9.

Re: ESP32 as MQTT broker?

Posted: Sat May 14, 2022 11:36 am
by LeighM
As an alternative, there are quite a few "Raspberry Pi" type "clones" that also run Linux, and hence can run Mosquitto.
In particular, I can confirm that Armbian runs well on both Orange Pi and NanoPi Neo.