Xamarin 跨平台上的 BLE

编程入门 行业动态 更新时间:2024-10-25 06:24:03
本文介绍了Xamarin 跨平台上的 BLE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在 Xamarin.Form 跨平台中,有没有办法在弹出对话框或菜单列表中显示可用 BLE 设备列表(扫描后),然后从弹出对话框中连接所需的 BLE 设备框并在为显示数据而创建的 UI 上显示数据??????

In Xamarin.Form cross platform , is there any way to show the list of available BLE devices (after scan) in a pop-up dialog box or in menu list and then connect the desired BLE device from the pop-up dialog box and show the data on the UI created for displaying data ??????

推荐答案

您将需要 DependencyService 以检索可用 BLE 设备的列表并显示到 ListView 像往常一样.

You will need DependencyService to retrieve the list of available BLE devices and just display to the ListView as usual.

此外,Xamarin 制作的以下组件可以帮助您轻松找到适用于 iOS 和 Android 的 BLE 设备.

Besides, below component made by Xamarin may help you to find BLE devices easily for both iOS and Android.

components.xamarin/view/Monkey.Robotics

更多推荐

Xamarin 跨平台上的 BLE

本文发布于:2023-07-03 21:57:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1012538.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:平台上   Xamarin   BLE

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!