python/winrt Bluetooth.GenericAttributProfile CreateAsync(GUID) method throws Not Implemented error

VINOTH P B 6 Reputation points
2020-07-07T16:11:50.39+00:00

We used python/winrt module to interact with windows runtime apis in python scripts.

There is name space called Windows.Devices.Bluetooth.GenericAttributeProfile using this name space we want to publish the advertisments and this name space will handle the Gatt service based operations.

We followed the LE Explorer application on C# for publishing the advertisments.
https://github.com/microsoft/BluetoothLEExplorer/blob/master/GattServicesLibrary/GattServicesLibrary/GenericGattService.cs

We converted the code to python and trying to publish the advertisment but unfortunatly falling on runtime error: Not Implemented while calling the create_async method.

Below is our python code

import winrt.windows.devices.bluetooth.genericattributeprofile as wdbgatt

gatt_service = wdbgatt.GattServiceProvider
mfg_uuid = uuid.uuid1() # This will returns some random guid
result = await gatt_service.create_async(mfg_uuid)

Are we missing something here?

Due to this we are blocked and there is no proper usage document.
We followed the follwing msdn document to create the service.
https://learn.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.genericattributeprofile.gattserviceprovider.createasync?view=winrt-19041#Windows_Devices_Bluetooth_GenericAttributeProfile_GattServiceProvider_CreateAsync_System_Guid_

Help us here to get unblocked.

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fay Wang - MSFT 5,226 Reputation points
    2020-07-08T02:37:54.147+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on).

    Your question is about Python and currently not supported here. You could ask about this in other Python's forums.

    Thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.