code: 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 () {};
  }
docs: stores data about a sensor packet, and holds a function that parses its raw bytes into a more descriptive object format.