hc-iotframework-iotservicemanager

1.2.0 • Public • Published

IoT Service Manager for Hoops Communicator

How To Use

To use this service manager, first create a configuration object. This manager supports 3 platforms: Azure Digital Twins, AWS TwinMaker, and Static Jason for testing. They all have different parameters in the configuration object.

Sataic Jason

{
  "platform": "local"
}

Azure

{
  "platform": "azure",
  "dtHost": "https://<digital-twin-host>",
  "dataClusterName": "<data-explorer-cluster>",
  "dbName": "<data-explorer-database>",
  "tableName": "<database-table>"
}

Then, simply install this package from npm:

npm install hc-iotframework-iotservicemanager

Here is an example to use the manager in your code:

const mng = require("hc-iotframework-iotservicemanager");
const config = {
  platform: "local"
};

const app = mng(3000, config);

Package Sidebar

Install

npm i hc-iotframework-iotservicemanager

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

14 kB

Total Files

11

Last publish

Collaborators

  • jasonjockky