hc-iotframework-iotservicemanager
v1.2.0
Published
IoT device manager for HOOPS
Downloads
9
Readme
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);