简体   繁体   中英

How to use BLE in Maui?

I have visual studio 17.2.0 preview installed with MAUI workload. How can I use bluetooth low energy apis on android and/or iOS?

Apparently Xamarin.Essentials cannot be installed into MAUI app.

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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