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

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

  this.configuration = opts.configuration;
  this.controller = Controllers[this.configuration.controller];
  if (!this.controller) {
    throw new Error("No valid Wi-Fi controller defined");
  }
}
function WiFiTransport ( opts ) { if ( ! ( this instanceof WiFiTransport ) ) { return new WiFiTransport ( opts ) ; } this . configuration = opts . configuration ; this . controller = Controllers [ this . configuration . controller ] ; if ( ! this . controller ) { throw new Error ( "No valid Wi-Fi controller defined" ) ; } }
Wi-Fi transport. Currently configurable as server only on Arduino.
@constructor
@param {Object} opts
Wi - Fi transport . Currently configurable as server only on Arduino .