I have a project, where I use Plug-In Xabre for Bluetooth LE. To test it I use Android 7.0 device. The problem occurs when I start scanning for devices nearby.
Following is my code for scanning devices: deviceList.Clear();
status = "SCANNING";
adapter.DeviceDiscovered += (s, a) =>
{
deviceList.Add(a.Device);
};
if (!ble.Adapter.IsScanning)
{
await adapter.StartScanningForDevicesAsync();
}
Last night I could get the scanned device. But since then it can't scan anymore. On the Output Line in visual studio:
- D/BluetoothLeScanner( 8436): could not find callback wrapper
But, when I tried it with a Android 4.4 Device, it works like what I am expecting, it can scan devices nearby.
Anyone know what is the problem here?