简体   繁体   English

如何在毛伊岛使用 BLE?

[英]How to use BLE in Maui?

I have visual studio 17.2.0 preview installed with MAUI workload.我安装了带有 MAUI 工作负载的 Visual Studio 17.2.0 预览版。 How can I use bluetooth low energy apis on android and/or iOS?如何在 Android 和/或 iOS 上使用蓝牙低功耗 API?

Apparently Xamarin.Essentials cannot be installed into MAUI app.显然 Xamarin.Essentials 无法安装到 MAUI 应用程序中。

As you can see here : BLE is not on our roadmap for .NET 6. We are discussing bringing Essentials together with Forms in dotnet/maui as there's a growing overlap and interdependence.正如您在此处看到的:BLE不在我们的 .NET 6 路线图上。我们正在讨论将 Essentials 与 dotnet/maui 中的 Forms 结合在一起,因为重叠和相互依赖性越来越大。

If you want to use BLE, you may need to write platform-specific code, you can refer to this to know how to use .NET MAUI Dependency Injection.如果你想使用 BLE,你可能需要编写特定于平台的代码,你可以参考这个来了解如何使用 .NET MAUI 依赖注入。

您可以使用Plugin.BLE库的Vanilla版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM