Esempio n. 1
0
 public void DeviceAdded(PLTDevice pltDevice)
 {
     if (!m_pltlabsapi.getIsConnected(pltDevice))
     {
         m_pltlabsapi.openConnection(pltDevice);
     }
 }
Esempio n. 2
0
        public void ConnectToPlantronicsDevice()
        {
            if (m_pltlabsapi == null)
            {
                return;
            }

            PLTDevice[] availableDevices = m_pltlabsapi.availableDevices();

            DebugListAvailableDevices(availableDevices);

            if (availableDevices.Count() < 1)
            {
                return;
            }

            if (!m_pltlabsapi.getIsConnected(availableDevices[0]))
            {
                DebugPrint(MethodInfo.GetCurrentMethod().Name, "About to open connection to device: " + availableDevices[0].m_ProductName);
                m_pltlabsapi.openConnection(availableDevices[0]);  // NOTE: PC will only ever show 1 call control device
                // even if you have multiple Plantronics devices attached to PC. Change call control device
                // in Spokes 3.0 settings (system tray)
            }
        }