/// <summary> /// Connects or reconnects to a logitow brick. /// </summary> public void ConnectOrReconnect(LogitowDevice device) { foreach (LogitowDevice connected in LogitowDevice.connectedDevices) { if (connected.deviceInfo.Id == device.deviceInfo.Id) { Console.WriteLine("Reconnecting..."); device.Disconnect(); } } device.ConnectAsync(); }
/// <summary> /// Connects or reconnects to a logitow brick. /// </summary> public void Connect(LogitowDevice device) { device.ConnectAsync(); }