예제 #1
0
        /// <summary>
        /// Stop scanning for devices.
        /// </summary>
        public void StopScanning()
        {
            if (!masterEmulator.IsDeviceDiscoveryOngoing)
            {
                return;
            }

            bool success = masterEmulator.StopDeviceDiscovery();

            if (success)
            {
                ScanningCanceled(this, EventArgs.Empty);
            }
        }
예제 #2
0
파일: Main.cs 프로젝트: weiyd/BLE-ECG
        void StopScan()
        {
            if (!masterEmulator.IsDeviceDiscoveryOngoing)
            {
                return;
            }

            bool success = masterEmulator.StopDeviceDiscovery();

            if (!success)
            {
                log.Add(new StringValue(AppText.StopScanError));
            }
        }