Ejemplo n.º 1
0
        private void ScanNow(object source, ElapsedEventArgs e)
        {
            FillList();

            currentDeviceList.RemoveOldDevices(ScoutHelper.DefaultDeviceDiscoveryPeriodSec * ScoutHelper.DefaultNumPeriodsToForgetDevice);

            platform.ProcessNewDiscoveryResults(currentDeviceList.GetClonedList());
        }
Ejemplo n.º 2
0
        private void ScanNow(object source, ElapsedEventArgs e)
        {
            //we first scan USB and then Wifi because if a device is seen on both, we want the Wifi device
            ScanUsb();

            //ScanWifi();

            currentDeviceList.RemoveOldDevices(ScoutHelper.DefaultDeviceDiscoveryPeriodSec * ScoutHelper.DefaultNumPeriodsToForgetDevice);

            platform.ProcessNewDiscoveryResults(currentDeviceList.GetClonedList());
        }
Ejemplo n.º 3
0
        public List <Device> GetDevices()
        {
            ScanNow(null, null);

            return(currentDeviceList.GetClonedList());
        }