Learn how to use ESP32 as a MQTT broker for small number of devices and small number of messages using sMQTTbroker library.
Learn how to use ESP32 as a MQTT broker for small number of devices and small number of messages using PicoMQTT library.
ESP MQTT client and broker library. This is a lightweight and easy to use MQTT library for ESP8266 and ESP32 devices. It supports client and broker modes, MQTT 3.1.1, arbitrary sized messages, and integrates with ArduinoJson.