private void ScanNow(object source, ElapsedEventArgs e) { FillList(); currentDeviceList.RemoveOldDevices(ScoutHelper.DefaultDeviceDiscoveryPeriodSec * ScoutHelper.DefaultNumPeriodsToForgetDevice); platform.ProcessNewDiscoveryResults(currentDeviceList.GetClonedList()); }
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()); }
public List <Device> GetDevices() { ScanNow(null, null); return(currentDeviceList.GetClonedList()); }