如何在Xamarin表单应用程序中获得蓝牙设备的列表?

问题描述:

我遵循以下网址:https://github.com/aritchie/bluetoothle
但我没有得到那么多的清晰度,是否有无论如何让他的解决方案轻松?我只需要设备和RSSI的列表....如何在Xamarin表单应用程序中获得蓝牙设备的列表?

我正在使用来自https://github.com/xabre/xamarin-bluetooth-le的插件。扫描设备列表:

adapter.DeviceDiscovered += (s,a) => deviceList.Add(a.Device); 
await adapter.StartScanningForDevicesAsync(); 

在插件源代码中还有一个示例应用程序供参考。