index.js
function FtdiDevice(settings) {
  if (typeof(settings) === 'number') {
    settings = { index: settings };
  }

  EventEmitter.call(this);

  this.deviceSettings = settings;

  this.FTDIDevice = new FTDIDevice(settings);
}
function FtdiDevice(settings) {
  if (typeof(settings) === 'number') {
    settings = { index: settings };
  }

  EventEmitter.call(this);

  this.deviceSettings = settings;

  this.FTDIDevice = new FTDIDevice(settings);
}
function FtdiDevice ( settings ) { if ( typeof ( settings ) === 'number' ) { settings = { index : settings } ; } EventEmitter . call ( this ) ; this . deviceSettings = settings ; this . FTDIDevice = new FTDIDevice ( settings ) ; }
FtdiDevice represents your physical device.
On error 'error' will be emitted.
@param {Object || Number} settings The device settings (locationId, serial, index, description).
FtdiDevice represents your physical device . On error error will be emitted .