Install Mosquitto MQTT Broker on Windows and Initial Testing

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so to start the installation process let's download the mosquito installer and we go to this site which is the mosquito dot slash download then go to the windows section you can select the build of your windows installer here i just select the 64 bit so let's download the 64 bit then wait for the it's download finish once the download is finished you can click the open then if this pops up and clicks the more import then click the run anyway and then just click yes in here also and when the welcome screen pops up just click next and then next again and then you can change where you want your mosquito to download i'm okay with the default installation so i just uh keep it as it is and then click the install button and then wait for the uh install creation to finish once done you can just click the finish button so now that the installer has already finished the installation then we're going to check the configuration support our computer broker to do that let's open uh these services and then look for the mosquito so you must click the broker service is now installed but it has not yet started to start the musketeer broker let's open a command prompt and then run it as an administrator then cd into the directory where we installed the mosquito broker so in my case it's in keto and then to start the mosquito service let's verify the net card mosquito then you could see that the message should be displayed like this which is started successfully if we go into this uh services services right now and then click the refresh you would see that it's now in the running state to verify that the investigator service is running let's execute the netstat command and as you can see the 188p is the default port used by our mqtt broker okay now that we have already configured our uh mosquito mqtt broker then let's uh let's try to test our installation if everything is okay to do the testing we're going to send a simple subscribe and publish exchange by using the windows command prompt so start let's open a command prompt and let's see cd into where we installed our mosquito now that we are here we're going to execute the mosquito sub command which is mojito sub with the topic sensor data in the house is our local host and we click enter so this command will wait for any publisher to publish any messages into our test center data copy now in a separate command prompt we cd again also into our [Music] computer directory and then we're going to execute a publishing by calling the command [Music] special message which is uh 100 which means that we're actually sending uh message to any subscriber to this particular topic so if we type better right now then the expectation is that message type 100 should be displayed in this as subscriber command prompt window client so let's click enter and as you can see 100 now displayed in the subscriber client which is uh the other command prompt if we publish another message say 200 and then let's verify and you would see that the subscriber client is able to receive our published message and now uh since we have already tested it then we can say that our installation of our mqtt mojito mqtt broker in our windows environment hp hi if you like the videos that i have created then please consider subscribing to my youtube channel and other social media channels hit the notification button so that you will get notified for new contents please do comment like and share happy exploring
Info
Channel: DonskyTech
Views: 74,360
Rating: undefined out of 5
Keywords: mqtt, mosquitto, mqtt-broker, windows, installation
Id: 4ZEPPQLY5o4
Channel Id: undefined
Length: 5min 46sec (346 seconds)
Published: Thu Sep 08 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.