Prerequisite Task
Note: Installation steps are provided for CentOS-6 and Ubuntu users. If you have different
platform requirements, refer to the Mosquitto website for other installation guides:
https://www.mosquitto.org
- Use a Unix-compatible operating system (for example: DebianWheezy, DebianJessie, CentOS 6.6, Mac OSX 10.10, Mac OSX 10.11)
- Download and install a compatible JDK version 1.8 (OpenJDK8, OracleJDK (Java SE 8u161/8u162)).
You can also use JDK8.
If you are using a Linux OS, use OpenJDK 8 and download it from http://openjdk.java.net/install/. If you are working on Mac OX or Windows, refer to the Oracle website for downloading the latest JDK 8 http://www.oracle.com/technetwork/java/javase/overview/index.html.
- Download and install Gradle version 2.9.x from https://gradle.org/releases/.
- Download and install Mosquitto 1.4.x MQTT broker, MQTT client, and requisite client libraries from http://mosquitto.org/download/.
- If you are running CentOS-6, follow these steps:
- If you are running Ubuntu, install Mosquitto MQTT broker with the following commands:
- Open the firewall to ports 1883 and 8883.
- Start the mosquito broker on an instance which can be reached from the instance where the sample client is executed.
- Configure the controller with the Mosquitto IP address and port to transfer SCI data.
- Enable SCI in the MQTT broker.