/ioti-samples

Examples showing how to access the most important capabilities of the IoT4I service

Primary LanguageJavaScriptEclipse Public License 1.0EPL-1.0

API Examples

Documents the end to end scenario for registering user, devices, shields and generating events for the devices.

Usage

  1. Run the command node createUser.js to create a user.
  2. Run node createShield.js to create a shield.
  3. Then run the command node createUserShieldAssociation.js to associate the user created in step 1 with the shield created in step 2.
  4. Then run the command node updateAnalyticsEngine.js to have the analytics engine update to reload the latest associations.
  5. Use the node simulateHazard.js command to trigger an event.

See [IBM IoT for Insurance] (https:// console.ng.bluemix.net/docs/services/IotInsurance/index.html) for more details.