I'm trying to create a GATT
service on Windows 10 IoT, which requires the Low Energy Peripheral Role
(LEPR
). We tried on Windows 10 IoT Enterprise 2019
and it works, but it fails in Windows 10 IoT Enterprise 2016
.
In Win10 IoT 2016
, in device manager, the BT
driver details doesn't even list the property Supports Low Energy Peripheral Role
.
The property can also be checked using C#
this code:
var localAdapter = await BluetoothAdapter.GetDefaultAsync();
ThrowIfNullAdapter(localAdapter);
if (!localAdapter.IsPeripheralRoleSupported)
{
throw new Exception("Adapter does not support peripheral role");
}
These bluetooth APIs don't seem to be supported in Win10 IoT 2016
, as I get a runtime error:
Requested Windows Runtime type 'Windows.Devices.Bluetooth.BluetoothAdapter' is not registered.
I would like to know if there is any way to use this role in Win10 IoT 2016
? Is there a newer MS
or 3rd party driver that can be installed? Or is there any other way to create a GATT
server on this OS, such as another API provided by 3rd party library such as BTFramework
, etc?