我们怎样才能获得Xamarin表单应用程序中支持蓝牙的设备列表?

时间:2017-08-25 12:50:45

标签: xamarin.forms bluetooth-lowenergy

我已按照以下网址:https://github.com/aritchie/bluetoothle
但是我没有那么清楚,无论如何要让他轻松解决?我只需要设备列表和RSSI ....

1 个答案:

答案 0 :(得分:1)

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

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

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