我可以让 PC 支持 GATT 服务器(外设)角色吗?

Can I enable PC to support GATT server (peripheral) role?

我测试了BluetoothAdapter adapter = await BluetoothAdapter.GetDefaultAsync();

并发现 IsPeripheralRoleSupported = false.

我在台式机和笔记本电脑上都进行了测试,它们都是 Windows10(1903),但没有成功。

有什么办法可以让电脑支持外设角色吗?

或者这个属性无法更改?

如果有人在寻找这个问题的答案,Mike Petrichenko 会在评论中回答!

You can but with very few Bluetooth Adapters. 100% working one is Laird BT851

You can not "enable" it. It depends only on hardware (Bluetooth module). Use compatible Bluetooth module (the one I posted above is compatible) and GATT server (peripheral mode) will work. Windows has very special requirements fro Bluetooth hardware to support peripheral mode and only few devices can be used.

It's a dongle (https://www.digikey.com/product-detail/en/laird-wireless-thermal-systems/BT851/BT851-ND/8251358). You should replace your one with this. Or, if you have build-in dongle, disable build-in. There are also 2 more known and tested models but they are not USB.