Monday, November 28, 2022
HomeITMethods to Set up Mosquitto MQTT on Ubuntu Server

Methods to Set up Mosquitto MQTT on Ubuntu Server





Commercial



We’ve already knowledgeable our readers that IBM Watson IoT platform will likely be discontinued sooner. We are going to regularly port our snippets for ESP32/Arduino to a generic MQTT platform to keep away from this sort of problem in future.

As a person of the Watson IoT Platform (or as a brand new person) that you must know solely two issues to run in your server – Mosquitto and Node-RED. Fortunately plenty of work was carried out by IBM for MQTT. As we’ll use the server for manufacturing/closing factor, we have to use a sub-domain, configure DNS and set up a cert bot. As an alternative of Raspberry Pi, we’re utilizing the server:

How to Install Mosquitto MQTT on Ubuntu Server

Situation the next instructions to get began :

I assume, you’ll be able to comply with the directions to finish the certbot set up. Level DNS in the direction of the server. Ensure that the title resolves. It might take 12 hours to 2 days to finish propagation (relying upon your location).

Proceed with the set up and configure Mosquitto MQTT :

Use this sort of configuration :

Restart the service, examine it and set certificates renewal:

Subsequent, set up the Paho javascript consumer or an Android app to examine whether or not MQTT is working. Now set up Node-RED:

Go to mqtt.instance.com:1880 in an online browser to open and log in to the Node-RED admin panel. The above issues had been used on the IBM Watson IoT platform.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments