-->
Page 1 of 1

Stand-Alone MQTT broker on a SoftAP?

PostPosted: Mon Jan 17, 2022 8:22 am
by mprowe
Hi Forum,

Can anyone point me to an example or maybe just a workflow+libraries to achieve this:

I want a stand-alone MQTT broker on an ESP8266. That ESP8266 must also have a SoftAP so that other MQTT clients can collect messages (probably using mosquitto_sub). Lastly that core ESP8266 must also be able to publish its own MQTT messages to the broker.
I have found many variants on this theme but none quite fit the bill. The problem seems to be with the PubSubClient Publishing to "self/home address" - sorta like 127.0.0.1?

Regards, M.
overview.png

Re: Stand-Alone MQTT broker on a SoftAP?

PostPosted: Sun Jan 30, 2022 6:06 am
by rpiloverbd
Maybe not exactly what you're looking for, but this tutorial does something similar with ESP32, using the MQTT protocol: https://www.theengineeringprojects.com/ ... -mqtt.html

Re: Stand-Alone MQTT broker on a SoftAP?

PostPosted: Thu Feb 03, 2022 2:27 am
by mprowe
Thank you.
However, as far as I can tell, that project uses an external (to the ESPx) MQTT Broker.

Regards, M.