Exemplo n.º 1
0
        public void BleHostScanStart()
        {
            if (!isBleInitialized)
            {
                Error("BleHostInitialize Fail!");
                return;
            }
            bleSearchResults.Clear();
            DevInfos.Clear();

            CsrBleDll.CsrBleHostCancel();
            CsrBleDll.CsrBleHostStopLESearch();
            CsrBleDll.CsrBleHostStartLEScan();
        }
Exemplo n.º 2
0
        public void BleHostScanStart()
        {
            if (!IsBleHosted)
            {
                Error("[CSR]:BleHostInitialize Fail!");
                return;
            }

            _csrSearchResults.Clear();
            GattSearchDevices.Clear();

            CsrBleDll.CsrBleHostCancel();
            CsrBleDll.CsrBleHostStopLESearch();
            Thread.Sleep(300);
            CsrBleDll.CsrBleHostStartLEScan();
            Debug("[CSR]:BleHostScanStart");
        }