An MQTT to Websocket bridge for ESP32 is required
I have an ESP32 based IoT device. It is programmed using Arduino C++. I use PubSubClient to communicate with the public MQTT broker EmQx. TLS security is enabled.
Now I want to convert this device into an MQTT-Websocket bridge:
-
it should receive data through MQTT and
-
broadcast it on the local LAN, over a web socket connection, to many other IoT devices.
Since the websockets are confined to my LAN, I will be contented to have very basic websocket communication without encryption. The ESP32 should act as an MQTT client and a Websocket server at the same time.
Is there any sample code for an MQTT-web socket bridge that I can refer to?
Read more here: Source link
