npm.io
1.2.0 • Published 3 years ago

hc-iotframework-iotservicemanager

Licence
MIT
Version
1.2.0
Deps
6
Size
14 kB
Vulns
1
Weekly
0

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);

Keywords