Exemplo n.º 1
0
 public DeviceLights(int aMode, string aConfigDir)
 {
     iConfigDir = aConfigDir;
     RandomiseUdn(out iDeviceName);
     iDevice = new Device.DvDeviceStandard(iDeviceName, this);
     iDevice.SetAttribute("Upnp.Domain", "openhome.org");
     iDevice.SetAttribute("Upnp.Type", "TestLights");
     iDevice.SetAttribute("Upnp.Version", "1");
     iDevice.SetAttribute("Upnp.FriendlyName", "ohNet Lights");
     iDevice.SetAttribute("Upnp.Manufacturer", "None");
     iDevice.SetAttribute("Upnp.ModelName", "ohNet Lights v1");
     iLights = new ProviderLights(iDevice, aMode);
     iDevice.SetEnabled();
 }
Exemplo n.º 2
0
 public DeviceLights(int aMode, string aConfigDir)
 {
     iConfigDir = aConfigDir;
     RandomiseUdn(out iDeviceName);
     iDevice = new Device.DvDeviceStandard(iDeviceName, this);
     iDevice.SetAttribute("Upnp.Domain", "openhome.org");
     iDevice.SetAttribute("Upnp.Type", "TestLights");
     iDevice.SetAttribute("Upnp.Version", "1");
     iDevice.SetAttribute("Upnp.FriendlyName", "ohNet Lights");
     iDevice.SetAttribute("Upnp.Manufacturer", "None");
     iDevice.SetAttribute("Upnp.ModelName", "ohNet Lights v1");
     iLights = new ProviderLights(iDevice, aMode);
     iDevice.SetEnabled();
 }