This is a sample device simulator demo program to demonstrate below mentioned IOT Security options.
- User Id/Password authentication
- One time password(OTP) authentication
- Server unique id authentication
- Message payload authentication
Following steps should be followed to run the program.
- Broker application should be in running state. Please download the broker application from https://github.com/ayan13s/BrokerAppDemo.git . Compile and run AppTest file as a java program. Detailed steps for configuring and executing the broker app are given in the readme file of broker app.
- Download the DeviceSimulatorDemo codebase and import in eclipse(or similar IDEs) as a JAVA program(Java 8 is needed to run it). Jars from lib folder should be added in the classpath.
- Update DeviceConfig/device.conf file with respective Watson IOT Platform settings and security options. Security options should be in sync with Broker app security options(example - if OTP is enabledin device app then it should be enabled in broker app as well).
- Run the com.ibm.iotdemo.Main class program to get the starting menu.
Please find the associated developerwork article at - Part 1 - https://www.ibm.com/developerworks/library/iot-trs-secure-iot-solutions1/ Part 2 - https://www.ibm.com/developerworks/library/iot-trs-secure-iot-solutions2/ Part 3 - https://www.ibm.com/developerworks/library/iot-trs-secure-iot-solutions3/