lib/transports/ble.js
function BLETransport(opts) {
  if (!(this instanceof BLETransport)) {
    return new BLETransport(opts);
  }

  this.configuration = opts.configuration;
  this.controller = Controllers[this.configuration.controller];
  if (!this.controller) {
    throw new Error("No valid BLE controller defined");
  }
}
function BLETransport(opts) {
  if (!(this instanceof BLETransport)) {
    return new BLETransport(opts);
  }

  this.configuration = opts.configuration;
  this.controller = Controllers[this.configuration.controller];
  if (!this.controller) {
    throw new Error("No valid BLE controller defined");
  }
}
function BLETransport ( opts ) { if ( ! ( this instanceof BLETransport ) ) { return new BLETransport ( opts ) ; } this . configuration = opts . configuration ; this . controller = Controllers [ this . configuration . controller ] ; if ( ! this . controller ) { throw new Error ( "No valid BLE controller defined" ) ; } }
BLE transport.
@constructor
@param {Object} opts
BLE transport .