Reputation: 1234
I tried to create a HID over GATT device with Windows IoT Core on my Raspberry Pi 3. I followed the documentation on https://learn.microsoft.com/en-us/windows/uwp/devices-sensors/gatt-server which is not 100% accurate for the release version of the 15063 SDK but it is the only documentation I could find.
However, when calling
GattServiceProviderResult result = await GattServiceProvider.CreateAsync(
GattServiceUuids.HumanInterfaceDevice);
I get
result.Error == BluetoothError.DisabledByPolicy
I added the Bluetooth capability to my package manifest, I'm running build 15063 and I'm using 15063 as the minimum SDK version. I tried to use the code in a Background App.
Also - I don't understand the error message. I haven't done anything with policies; I'm not running the Pro version of Windows IoT Core.
Upvotes: 0
Views: 464
Reputation: 1234
As it turns out, running a HID service is not allowed according to this Microsoft answer on github.
Unfortunately, HID is currently protected as a reserved service, which prevents it from being implemented by a 3rd party application. Please share details on the scenario, and we will discuss it internally.
The documentation for GATT Server on UWP is still being worked on (https://github.com/MicrosoftDocs/windows-uwp/issues/63)
Upvotes: 0