By Ranjith Kumar Diraviyam|2017-12-09T14:18:54+00:00December 5th, 2017|
We have been bundling the Windows MQTT Client dlls and shared libraries for Linux and MAC into the MQTT Broker and the IOT Simulator. These clients can be started using the python files bundled in the lib/ folder of the product. Python 2.7 and Open SSL are mandatory for running the client using these libraries. Linux and MAC mostly will have openssl and python installed by default. But for Windows, we need to install the same.
Step 2: Confirm the installation of python. Open a command prompt. Type the command python in command prompt and press enter. It should take you to the Python prompt if installed perfectly. Exit the python prompt.
Step 1: Download the stable version of the openssl from their website
Step 2: Download Visual Studio FREE version from the Microsoft and install it.
Step 3: Download Perl and install the same.
Step 4: Use ppm to install nasm and dmake
ppm install nasm
ppm install dmake
Step 5: Open the command Prompt inside the Visual Studio and set up the openssl using the Visual C++ method in the help file present in the downloaded file. You can either use the INSTALL.W32 or INSTALL.W64 based on your OS.
Step5: Check the installation of the openssl by opening the command prompt and executing the command openssl.
Setup Windows MQTT Client
Once you are done with the above steps your windows os is ready to run the Windows MQTT Client. Download the MQTTRoute. After installation, go to the lib/ folder and run any of the client python files like Example1.py. Make sure you run the runbroker.bat inside the bin/ folder so that the client can connect to it.