http://www.smarterhouse.io/securing-the-mosquitto-mqtt-broker/
Controlling NodeMCU’s LED through MQTT
In this very simple example, I will setup a NodeMCU to connect to my MQTT broker and light its LED depending on received messages. This gives a very simple IOT device to test the MQTT protocol.
Enabling and using WebSockets on Mosquitto
In this post, we’ll see how to enable and use the WebSocket protocol in Mosquitto to allow MQTT transmission from Javascript. A sample use of MQTT through a WebSocket is then performed.
Continue reading “Enabling and using WebSockets on Mosquitto”