Set Up Your Development Environment to Use the JavaScript Client Software Libraries

Before you can develop applications that let your devices to communicate with Oracle Internet of Things Cloud Service, you first download and extract the JavaScript client software libraries.

  1. Register your device, record the password, and download the provisioning file.
  2. Upload the humidity and temperature sensor device models to Oracle Internet of Things Cloud Service. See Upload the Sample Device Models.
  3. Open a web browser and browse to the Oracle Internet of Things Cloud Service client software libraries download site.
  4. Scroll to JavaScript Client Software Library and download the Binaries, Source Code, and Samples zip files.
  5. Extract the contents of the zip files. The files are saved to these directories:
    Filename Directory
    iotcs-csl-js-bin-<version>.zip iotcs/csl/js/bin
    iotcs-csl-js-src-<version>.zip iotcs/csl/js/src
    iotcs-csl-js-samples-<version>.zip iotcs/csl/js/samples
  6. Create new applications named JavaScriptCLapp and JavaScriptELapp and then record the application IDs for each application. See Creating a New Application.
  7. Associate the humidity and temperature sensor device models with the JavaScriptCLapp and JavaScriptELapp applications.
  8. Add integrations named JavaScriptCLapp and JavaScriptELapp to the applications. See Integrating Enterprise Applications with Oracle IoT Cloud Service.
  9. Download the provisioning file for the JavaScriptCLapp integration:
    1. Log in to your Oracle Internet of Things Cloud Service instance.
    2. Click the Menu (Menu icon) icon adjacent to the Oracle Internet of Things Cloud Service title on the Management Console.
    3. Click Applications and then Browse Applications.
    4. Click JavaScriptCLapp and then Integration.
    5. Select the JavaScriptCLapp integration and click the Edit (Edit icon) icon.
    6. Click the Overview tab.
      If you are using Oracle Internet of Things Cloud Service version 16 4.1 or earlier, record the ID and Shared Secret values. These values are required when you run the provisioning tool to create the trusted assets store.
    7. Enter a password in the File Protection Password field to encrypt the provisioning file that contains the configuration and credentials to activate your integration.
    8. Enter the password again in the Confirm Password field.
    9. Click Download Provisioning File.
    10. Click Save File.
    11. Browse to a directory and then click Save.
  10. Repeat the previous step to download the provisioning file for the JavaScriptELapp integration.
  11. Prepare your device for the installation of the JavaScript client software libraries. See Prepare Your Device to Use the JavaScript Client Software Library.
  12. Run the sample applications.