Exemplo n.º 1
0
        public void Connect(string host)
        {
            var binding = new System.ServiceModel.BasicHttpBinding();
            var address = new System.ServiceModel.EndpointAddress("http://" + host + ":49153/upnp/control/basicevent1");
            var client  = new BasicServicePortTypeClient(binding, address);
            var device  = new WeMoDevice(this, client, (_devices.Count + 1).ToString());

            _devices.Add(device);
        }
Exemplo n.º 2
0
        public void Connect(string host)
        {
            var binding = new System.ServiceModel.BasicHttpBinding();
            var address = new System.ServiceModel.EndpointAddress("http://" + host + ":49153/upnp/control/basicevent1");
            var client = new BasicServicePortTypeClient(binding, address);
            var device = new WeMoDevice(this, client, (_devices.Count + 1).ToString());

            _devices.Add(device);
        }