lib/sensors.js
function (name, id, bytes, parser) {
  this.name = name;
  this.id = id;
  this.bytes = bytes;

  // the parser is null by default, otherwise the specified function
  this.parser = _.isFunction(parser) ? parser : function () {};
}
function (name, id, bytes, parser) {
  this.name = name;
  this.id = id;
  this.bytes = bytes;

  // the parser is null by default, otherwise the specified function
  this.parser = _.isFunction(parser) ? parser : function () {};
}
function ( name , id , bytes , parser ) { this . name = name ; this . id = id ; this . bytes = bytes ; // the parser is null by default, otherwise the specified function this . parser = _ . isFunction ( parser ) ? parser : function ( ) { } ; }
stores data about a sensor packet, and holds a function that parses its raw bytes into a more descriptive object format.
stores data about a sensor packet and holds a function that parses its raw bytes into a more descriptive object format .