thing-node
A Kii enabled IoT library for node.js capable Things
Installation
$ npm install --save thing-node
Usage
For detailed info see demos
and test/index.js
var thingNode = ; const vendorThingId = 'MyThing';const thingPassword = 'ThingPassword';const thingType = 'ThingType'; const thingRegistrationFields = _vendorThingID: vendorThingId _password: thingPassword _thingType: thingType _vendor: 'ThingManufacturer'; // Initialize with Kii app info (get it at developer.kii.com)thingNode; // Register Thing in cloudthingNode;
TODO
- Provide Promises besides a callback based API
- Provide API documentation (JSDoc)
Development
- Test:
npm test
orgulp
- Node dev version:
4.2.1
- Npm dev version:
3.5.2
- Node deploy version:
0.12.17
- Npm deploy version:
2.15.1
Logging
How to see what's happening on the cloud side (Kii log):
node ../kii-cli/bin/kii-logs.js -t --site us --app-id <KII_APP_ID> --app-key <KII_APP_KEY> --client-id <KII_CLIENT_ID> --client-secret <KII_CLIENT_SECRET>
License
MIT © German Viscuso