First, build mosquitto

 

1. Download · JAR package:

https://repo.eclipse.org/content/repositories/paho-releases/org/eclipse/paho/

 

 

 

 2. Download mosquitto:

http://mosquitto.org/files/binary/

 

 

 

 Because after downloading mosquitto, will be missing pthreadVC2.dll, libeay32.dll and ssleay32.dll  these three documents, the following three files download method provides:

3. Download pthreadVC2.dll:

ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x64/

 

 

After downloading the file attached to mosquitto path, as shown:

 

 

 4. Download libeay32.dll and ssleay32.dll:

 

http://slproweb.com/products/Win32OpenSSL.html

 

After the download is complete, locate the installation path libeay32.dll and ssleay32.dll two files

 

 

These two files are pasted into mosquitto installation path

Finish the above steps can begin to configure the environment variables

5. Configuration Environment variables:

 

 

 

 

 

 Then click OK ok, the next test can be done from the command line

6. Test:

Simultaneously! ! Open three command line:

The first one: open mosquitto command: mosquitto -v

Second: Topic subscription command: mosquitto_sub -v -t {topic}

Third: Post Command message: mosquitto_pub -t {topic} -m {message}

 

Complete instructions here mosquitoo set up is completed!

Guess you like

Origin www.cnblogs.com/Somture478/p/11848298.html