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); }
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); }