

REQUIREMENTS: It runs on Raspberry Pi, so I figured a 512MB Ubuntu 14.04 圆4 Droplet would be sufficient. This is the process I went through to get a Mosquitto server up and receiving data on a DigitalOcean droplet, I customized the server for OwnTracks but most steps except config should apply for any use of Mosquitto server. OwnTracks is an open-source GPS location history logging service (the main components are apps for iPhone and Android.) OwnTracks takes care of sending the data, and recommends using Mosquitto as the framework on the receiving or “broker” side.

Verify the data IoT Gateway Plugin is publishing to the Mosquitto Broker appears in the command window.Mosquitto is an open-source message broker service that uses the MQTT protocol to send and receive messages, typically with IOT (Internet of Things) devices. Start the Mosquitto subscription service by running the command: " mosquitto_sub.exe -t # " where "?t #" instructs the mosquitto_sub program to display data published to all topics on the Mosquito broker. In the command prompt, navigate to the Mosquitto root folder, such as C:\Program Files (x86)\mosquitto. Once the tag is added, confirm this event log message in KEPServerEX Configuration interface: "MQTT agent is connected to broker 'tcp://:1883'" Verifying the Data: Open a command prompt by clicking on Start | All Programs | Accessories | Command Prompt. This tag should change value at least once per the publish interval set in step 4 or be configured to send "every scan" to confirm function. Set the publish rate to a reasonable number, such as 1000ms. Connecting to the Mosquitto Broker: Follow the steps in the KEPServerEX IoT Gateway Plug-in help system to setup an MQTT agent.

Acknowledge the message: The Mosquitto Broker service was started successfully. Start the Mosquitto service by running the command: " net start mosquitto".
#How to run mosquitto on windows install
Link Install Windows Binary mosquitto-install-win32.exe (Native build, Windows Vista or higher) Copy the following files from the OpenSSL installation, C:\OpenSSL-Win32, to the Mosquitto root folder, C:\Program Files (x86)\mosquitto: sslea圓2.dll libea圓2.dll Copy the following file from the pthreads zip archive to the Mosquitto root folder, C:\Program Files (x86)\mosquitto: pthreads-w32-release.zip\Pre-built.2\dll\x86\pthreadVC2.dll Running Mosquitto: To start the broker, open a command prompt by clicking on Start | All Programs | Accessories | Command Prompt. The following should be installed before Mosquitto according to its documentation: Microsoft Visual C++ 2010 Redistributables Link: Install vcredist_x86.exe OpenSSL Link: Install "Win32 OpenSSL " Use all the default settings in the installer Required DLLs: libea圓2.dll sslea圓2.dll pthreads Link: No install needed for pthreads-w32-release.zip Required DLLs: pthreadVC2.dll Installation: Install Mosquitto.

Prerequisites: Mosquitto relies on several third-party packages to install properly. Tip : The Mosquitto broker may be installed on the machine running KEPServerEX and the IoT Gateway Plug-in. Follow these instructions to setup Mosquitto on a Microsoft Windows computer or refer to the vendor instructions. A third-party broker, such as Mosquitto, may be configured to receive messages from the IoT Gateway Plug-in agent. Yes! Setting up a Mosquitto MQTT Broker to Receive KEPServerEX IoT Gateway Messages The KEPServerEX IoT Gateway Plug-in does not include an MQTT broker.
