Run the Sample JavaScript Directly Connected Device Applications

Run the sample JavaScript directly connected device applications to learn how to use the client software library APIs. The sample directly connected device applications use software to simulate temperature and humidity sensors. The sample directly connected device applications periodically send temperature, humidity, and alert messages to Oracle Fusion Cloud IoT Intelligent Applications.

  1. Download and install Node.js with npm. For a list of supported platforms, see Oracle IoT Cloud Service Client Software Certified System .
  2. Open a command prompt and run this command to move to the samples directory: cd C:\Users\username\Documents\iot\csl\js\samples.
  3. Run this command to activate a registered device:
    run-device-node-sample.bat [sample js file] [[id].conf file path] [File Protection Password used for the .conf file]
  4. Confirm the device is sending humidity and temperature data to Oracle Fusion Cloud IoT Intelligent Applications:
    1. Open the Oracle Fusion Cloud IoT Intelligent Applications Management Console.

      The URL format to access the IoT management console is: <iot instance name>.<domain name>/ui

      For example: https://myiotcs.mydomain.oraclecloud.com/ui or https://myiotcs.mydomain.oracleiotcloud.com/ui.

    2. Click the Menu (Menu icon) icon adjacent to the Oracle Fusion Cloud IoT Intelligent Applications title on the Management Console.
    3. Click Devices.
    4. Click Alerts and Messages.
    5. Click the Messages tab and confirm there are incoming messages.