Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to Install MQTT Broker in Contiki-NG

Description

MQTT Broker is a server that receives all messages from the clients.

MQTT client is any device that runs an MQTT library and connects to an MQTT broker over a network.

Step 1

Install MQTT Broker Packages

Open a new Terminal window.

Type the following Command to install MQTT broker.

sudo apt-get install -y mosquitto mosquitto-clients.

How to Install MQTT Broker in Contiki-NG

And then type sudo Password

After entering sudo password, MQTT broker packages will install.


Install MQTT Broker Packages
Step 2
Check mosquitto Broker version

Type the Command to check the version of MQTT broker

>> mosquitto -v

The Installed mosquitto version is 3.1 broker.


Check mosquitto Broker version
Step 3
Run mosquitto broker

Type the following Command to connect the MQTT broker

>> mosquitto -p port address

If the port address is already in use then try another port address.


Run mosquitto broker