Python Forum
python/winrt Bluetooth.GenericAttributProfile CreateAsync(GUID) method throws Not Imp
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python/winrt Bluetooth.GenericAttributProfile CreateAsync(GUID) method throws Not Imp
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Read data via bluetooth frohr 9 3,335 Jul-10-2022, 09:51 AM
Last Post: frohr
  Connect to HC-05 Bluetooth (NOT BLE) korenron 0 1,465 Jun-26-2022, 09:06 AM
Last Post: korenron
  Read buffer from bluetooth frohr 2 2,131 Jun-01-2022, 01:31 PM
Last Post: frohr
  pymysql: insert query throws error wardancer84 12 4,551 Jan-28-2022, 06:48 AM
Last Post: wardancer84
  Scan for Bluetooth device korenron 0 2,611 Jan-10-2022, 01:06 PM
Last Post: korenron
  Sending string commands from Python to a bluetooth device Rovelin 13 9,433 Aug-31-2021, 06:40 PM
Last Post: deanhystad
  ModuleNotFoundError: No module named 'bluetooth' Error Rovelin 4 12,127 Aug-31-2021, 04:04 PM
Last Post: Rovelin
  Bluetooth send message after connecting? korenron 2 2,663 Apr-26-2021, 05:50 AM
Last Post: korenron
  using WinRt module in python script akhilgnair 0 2,097 Apr-23-2021, 05:38 AM
Last Post: akhilgnair
  pyarrow throws oserror winerror 193 1 is not a valid win32 application aupres 2 3,770 Oct-21-2020, 01:04 AM
Last Post: aupres

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020