예제 #1
0
        private void ScanNow(object source, ElapsedEventArgs e)
        {
            FillList();

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

            platform.ProcessNewDiscoveryResults(currentDeviceList.GetClonedList());
        }
예제 #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());
        }
예제 #3
0
        public List <Device> GetDevices()
        {
            ScanNow(null, null);

            return(currentDeviceList.GetClonedList());
        }