smartbase
smartbase is a base board for you to create a smartobject with plugins.
1. Overview
This module helps developers integrate plugins into a smartobject. smartbase is like a carrier and plugins are various peripherals such as a LED, a temperature sensor, a switch to be put into the smartobject. In addition, **smartbase ** makes the smartobject listenable as well.
2. Installation
$ npm install smartbase --save
3. Basic Usage
var SmartObject = smartbase = ; // Plugin of a LED on LinkIt Smart 7688var ledPlugin = ;var so = ; so = ; // attach a listener to receive the change from resource 'lightCtrl/0/onOff' so; so; // Modify the sensorValue of the temperature sensor and the listener will be triggeredso;