BluetoothAdapter.StartLeScan(BluetoothLeScanMode.Balanced);
_flagDiscovery = false;
await waitDiscoveryFlag();
- Assert.IsTrue(_flagDiscovery, "ScanResultChanged event is not getting called");
+
+ if (_flagDiscovery == false)
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "There is no LE device around");
+
BluetoothAdapter.StopLeScan();
BluetoothAdapter.StartLeScan(BluetoothLeScanMode.LowLatency);
_flagDiscovery = false;
await waitDiscoveryFlag();
- Assert.IsTrue(_flagDiscovery, "ScanResultChanged event is not getting called");
+
+ if (_flagDiscovery == false)
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "There is no LE device around");
+
BluetoothAdapter.StopLeScan();
BluetoothAdapter.StartLeScan(BluetoothLeScanMode.LowEnergy);
_flagDiscovery = false;
await waitDiscoveryFlag();
- Assert.IsTrue(_flagDiscovery, "ScanResultChanged event is not getting called");
+
+ if (_flagDiscovery == false)
+ LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "There is no LE device around");
+
BluetoothAdapter.StopLeScan();
/* POSTCONDITION