Exemplo n.º 1
0
 public UpnpRootDevice AddDevice(UpnpRootDevice device)
 {
     lock (this.deviceLock)
     {
         UpnpEngineDevice engineDevice = new UpnpEngineDevice(device, this);
         this.devices.Add(engineDevice);
     }
     this.RefreshNotifyer();
     return(device);
 }
Exemplo n.º 2
0
        public void StartUpnp()
        {
            this.AddEndpoint(this.upnpEndpoint);
            this.upnpEngine.Start();



            UpnpRootDevice device = new UpnpRootDevice(
                Guid.NewGuid(),
                "LampForMenahem",
                new UpnpNtDeviceType("Eva3Light", "1"),
                new UpnpManufacturer("fotonica"),
                new UpnpModel("Eva3"));

            device.PresentationURL = "http://192.168.0.250";

            this.upnpEngine.AddDevice(device);
            Console.WriteLine($"Running for: {device.Id.ToString()}");
        }