Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MQTT broker windows [closed]

I've been trying to set up MQTT broker on windows but with not results. I am not very experience in this topic. I've downloaded the mosquitto files from http://mosquitto.org/download/ but I haven't get the server running. I downloaded the binary files for windows and followed the instructions but I can only get the broker run but I can't subscribe. It says "pthreadVC2.dll is missing" and I've tried install it but I do not know how to do it. If you are able to suggest me how to get the broker running I appreciate your help. Thank you

like image 318
Fernando Avatar asked Mar 31 '15 23:03

Fernando


People also ask

How do you stop Mosquitto broker Windows?

Starting and Stopping The Broker This gives you access to the console which is invaluable for testing. On Windows you can stop the service if it is running by using the control panel>admin>services. By default the broker will start listening on port 1883.

Is a free open source MQTT broker that runs on Windows and Linux?

An open source MQTT broker Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers.


2 Answers

Please see http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.git/tree/readme-windows.txt

Dependencies - win32

  • OpenSSL Link: http://slproweb.com/products/Win32OpenSSL.html Install "Win32 OpenSSL " Required DLLs: libeay32.dll ssleay32.dll
  • pthreads Link: ftp://sourceware.org/pub/pthreads-win32 Install "pthreads-w32--release.zip Required DLLs: pthreadVC2.dll

If this doesn't solve the problem, you may need to install Visual Studio redistributables. The packaged Mosquitto versions are compiled with Visual Studio 2010, which can be found here: https://www.microsoft.com/en-gb/download/details.aspx?id=8328

like image 76
ralight Avatar answered Sep 22 '22 13:09

ralight


Check this link: https://sivatechworld.wordpress.com/2015/06/11/step-by-step-installing-and-configuring-mosquitto-with-windows-7/

You have to include these files(libeay32.dll, ssleay32.dll and pthreadVC2.dll) in mosquitto folder (C:\Program Files (x86)\mosquitto) and reinstall the mosquitto server. After reinstalling check the services to see if Mosquitto is running as a service. Then use the command netstat -an in command prompt. That will show the active connection and its status.

The above link gives a step by step installation procedure.

like image 39
Rose Avatar answered Sep 21 '22 13:09

Rose