.Net 中的低功耗蓝牙 (C#)
Bluetooth Low Energy in .Net (C#)
是否可以在控制台应用程序中将低功耗蓝牙 (ble) 与 .Net (C#) 结合使用?例如,在 uwp 应用程序中使用 windows.devices.bluetooth。
我只想在 uwp 中完成,但我需要为 .Net 设计的 vJoy 和 MbientLab Metawear C 硬件作为带有 ble 的传感器。
您可以在 C# 桌面应用程序中使用 C# API!我有一个 sample here in GitHub.
一般来说,要访问 C# APIS,请添加对项目的两个引用:
- C:\Program Files (x86)\Windows Kits\UnionMetadata\Windows.winmd
- C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5\System.Runtime.WindowsRuntime.dll
请注意,#2 版本取决于您使用的 .Net 版本。
Background tasks will not be supported, but all other Bluetooth C#
features should be there.
是否可以在控制台应用程序中将低功耗蓝牙 (ble) 与 .Net (C#) 结合使用?例如,在 uwp 应用程序中使用 windows.devices.bluetooth。
我只想在 uwp 中完成,但我需要为 .Net 设计的 vJoy 和 MbientLab Metawear C 硬件作为带有 ble 的传感器。
您可以在 C# 桌面应用程序中使用 C# API!我有一个 sample here in GitHub.
一般来说,要访问 C# APIS,请添加对项目的两个引用:
- C:\Program Files (x86)\Windows Kits\UnionMetadata\Windows.winmd
- C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5\System.Runtime.WindowsRuntime.dll
请注意,#2 版本取决于您使用的 .Net 版本。
Background tasks will not be supported, but all other Bluetooth C# features should be there.