Example #1
0
        /// <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();
        }
Example #2
0
 /// <summary>
 /// Connects or reconnects to a logitow brick.
 /// </summary>
 public void Connect(LogitowDevice device)
 {
     device.ConnectAsync();
 }