INSTAR Deutschland GmbHINSTAR Deutschland GmbH

Mosquitto 2.0 MQTT Broker with Node-RED



Q: Mosquitto now offers a management dashboard with version 2. How can I install the broker and use it with my camera and Node-RED?

A: Start by installing Mosquitto 2.0 on Windows, macOS or LINUX. And add a Mqtt Client for Node-RED inside the Mosquitto Dashboard:

Mosquitto 2.0 MQTT Broker with Management Dashboard

Apply the Client Role to this client so that Node-RED is able to subscribe and publish updates to MQTT topics:

Mosquitto 2.0 MQTT Broker with Management Dashboard

Now we have to configure our MQTT Nodes to use the Mosquitto 2.0 broker. Type in the IP address and port as well as the Client ID you have chosen for Node-RED in the Mosquitto Dashboard:

Mosquitto 2.0 MQTT Broker with Management Dashboard

Add the login that you set for the Node-RED client:

Mosquitto 2.0 MQTT Broker with Management Dashboard

And - if you like - add a Last-Will-and-Testament (LWT) for Node-RED:

Mosquitto 2.0 MQTT Broker with Management Dashboard

Now make sure that all your MQTT nodes use the new Mosquitto 2.0 broker:

Mosquitto 2.0 MQTT Broker with Management Dashboard

Deploy your Node-RED flow and check the Mosquitto Dashboard. You should now see the LWT in the MQTT Topic Tree:

Mosquitto 2.0 MQTT Broker with Management Dashboard

As a demo I added my cameras HTML5 Video and toggles for my cameras privacy masks:

Mosquitto 2.0 MQTT Broker with Management Dashboard