dreemgl
Version:
DreemGL is an open-source multi-screen prototyping framework for mediated environments, with a visual editor and shader styling for webGL and DALi runtimes written in JavaScript. As a toolkit for gpu-accelerated multiscreen development, DreemGL includes
35 lines • 1.02 kB
JavaScript
/**
* @class iot
* @extends service
* The iot class makes it very easy to connect to a wide variety of devices including
* SmartThings, Philips Hue and many more.
*
* IMPORTANT: see /examples/components/iot/README.md for setup instructions.
*/
/**
* @attribute {Array} [things=""]
* A list of things connected to the hub, automatically updated as new devices are discovered and their state changes.
* Each thing consists of an object containing an id, name, and a state object representing its current state's value type, unit and if it's readonly or not where available.
*/
/**
* @attribute {Boolean} [connected="false"]
* If true, we are connected
*/
/**
* @method update
* Updates a specific thing's state to a new value
* @param thingid
* @param state
* @param value
*/
/**
* @method updateAll
* Updates all things to a new value
* @param state
* @param value
*/
/**
* @method connect
* Override to change what gets connected. Currently attempts to connect all devices.
* @param iotdb
*/