lib/models/device.js
function Device(key, params) {
  var p = params || {};
  // The primary key of the device [String]
  this.key = key;

  // Human readable name of the device [String] EG - "My Device"
  this.name = p.name || "";

  // Indexable attributes. Useful for grouping related Devices.
  // EG - {location: '445-w-Erie', model: 'TX75', region: 'Southwest'}
  this.attributes = p.attributes || {};
  this.sensors = p.sensors || [];
}
function Device(key, params) {
  var p = params || {};
  // The primary key of the device [String]
  this.key = key;

  // Human readable name of the device [String] EG - "My Device"
  this.name = p.name || "";

  // Indexable attributes. Useful for grouping related Devices.
  // EG - {location: '445-w-Erie', model: 'TX75', region: 'Southwest'}
  this.attributes = p.attributes || {};
  this.sensors = p.sensors || [];
}
function Device ( key , params ) { var p = params || { } ; // The primary key of the device [String] this . key = key ; // Human readable name of the device [String] EG - "My Device" this . name = p . name || "" ; // Indexable attributes. Useful for grouping related Devices. // EG - {location: '445-w-Erie', model: 'TX75', region: 'Southwest'} this . attributes = p . attributes || { } ; this . sensors = p . sensors || [ ] ; }
The top level container for a group of sensors.
The top level container for a group of sensors .