Jul-08-2020, 04:27 AM
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/BluetoothLE...Service.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://docs.microsoft.com/en-us/uwp/api...stem_Guid_
Help us here to get unblocked.
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/BluetoothLE...Service.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://docs.microsoft.com/en-us/uwp/api...stem_Guid_
Help us here to get unblocked.