1 ECLIPSE MOSQUITTO
According to its website at https://mosquitto.org/ , “Eclipse Mosquitto™ is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 3.1 and 3.1.1. MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model.” On the following, we will discuss about how to install and test Mosquitto on Windows, Raspberry Pi and Linux System.1.1 ECLIPSE MOSQUITTO ON WINDOWS
The following steps describe how to install and run Mosquitto on Windows:
1. Download Mosquitto broker for Windows from http://www.eclipse.org/downloads/download.php?file=/mosquitto/binary/win32/mosquitto-1.4.10-install-win32.exe
2. Install Mosquitto on Windows by following the steps specified in https://sivatechworld.wordpress.com/2015/06/11/step-by-step-installing-and-configuring-mosquitto-with-windows-7/
3. To start the Mosquitto service, open up Windows command line by clicking “Start” on the Taskbar, typing in “cmd” and pressing Enter. Navigate to where you installed Mosquitto. By default it will be located in “C:\Program Files (x86)\mosquitto” as shown on the picture below.
TUTORIAL ON MOSQUITTO AND PAHO
Page 2 of 4
4. You can test your broker with the following commands on two new terminals:
Use `mosquitto_sub` to subscribe to a topic on terminal 1:
mosquitto_sub -t 'test/topic' -v
And to publish a message on terminal 2:
mosquitto_pub -t 'test/topic' -m “hello world”
REFERENCED FROM :http://www.steves-internet-guide.com/install-mosquitto-broker/
https://mosquitto.org/
No comments:
Post a Comment