lib/model/AccessoryInfo.js
function AccessoryInfo(username) {
  this.username = username;
  this.displayName = "";
  this.category = "";
  this.pincode = "";
  this.signSk = bufferShim.alloc(0);
  this.signPk = bufferShim.alloc(0);
  this.pairedClients = {}; // pairedClients[clientUsername:string] = clientPublicKey:Buffer
  this.configVersion = 1;
  this.configHash = "";

  this.setupID = "";

  this.relayEnabled = false;
  this.relayState = 2;
  this.relayAccessoryID = "";
  this.relayAdminID = "";
  this.relayPairedControllers = {};
  this.accessoryBagURL = "";
}
function AccessoryInfo(username) {
  this.username = username;
  this.displayName = "";
  this.category = "";
  this.pincode = "";
  this.signSk = bufferShim.alloc(0);
  this.signPk = bufferShim.alloc(0);
  this.pairedClients = {}; // pairedClients[clientUsername:string] = clientPublicKey:Buffer
  this.configVersion = 1;
  this.configHash = "";

  this.setupID = "";

  this.relayEnabled = false;
  this.relayState = 2;
  this.relayAccessoryID = "";
  this.relayAdminID = "";
  this.relayPairedControllers = {};
  this.accessoryBagURL = "";
}
function AccessoryInfo ( username ) { this . username = username ; this . displayName = "" ; this . category = "" ; this . pincode = "" ; this . signSk = bufferShim . alloc ( 0 ) ; this . signPk = bufferShim . alloc ( 0 ) ; this . pairedClients = { } ; // pairedClients[clientUsername:string] = clientPublicKey:Buffer this . configVersion = 1 ; this . configHash = "" ; this . setupID = "" ; this . relayEnabled = false ; this . relayState = 2 ; this . relayAccessoryID = "" ; this . relayAdminID = "" ; this . relayPairedControllers = { } ; this . accessoryBagURL = "" ; }
AccessoryInfo is a model class containing a subset of Accessory data relevant to the internal HAP server,
such as encryption keys and username. It is persisted to disk.
AccessoryInfo is a model class containing a subset of Accessory data relevant to the internal HAP server such as encryption keys and username . It is persisted to disk .