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
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
apt-get install mosquitto mosquitto_clients
–
Ga 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.
There's the open-source and scalable MQTT broker I'm personnally involved with: emitter.io. It's built using .NET Core and LibUV - github.com/emitter-io/emitter.
There's also a nice list of MQTT brokers available here: https://github.com/mqtt/mqtt.github.io/wiki/servers
this link will bring you to the pThreads: ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/
where you can donwload it directly:
and then copy-paste the dll in your mosquito installation folder
© 2022 - 2024 — McMap. All rights reserved.