Introduction
Axonize SDK created for developers that works with Axonize IoT orchestration platform. The SDK would help developers have fasters integration with device manufacturers and the Axonize platform.
Build
npm install axonize-sdk
#Test run the command "mocha" using a basic command line
#Quick Start Please checkout samples\reoccuringSensorUpdate.js
Or use the following basic example:
const Device = require('axonize-sdk').Device;
const device = new Device("fill device id",
"fill product id",
"fill app id",
"fill hub key",
"iot hub host name");
//The interval which would trigger a temperature update in seconds
const main = async () => {
device.addProperty("Temperature", 22, 7, null, true);
await device.start();
device.updateProperty("Temperature", 25);
await device.stop();
}
const callmain = async ()=>{
main();
}
callmain();