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
  RPi and smartphone Bluetooth communication GigiG 0 343 Mar-18-2025, 09:54 AM
Last Post: GigiG
  Read data via bluetooth frohr 9 7,727 Jul-10-2022, 09:51 AM
Last Post: frohr
  Connect to HC-05 Bluetooth (NOT BLE) korenron 0 2,127 Jun-26-2022, 09:06 AM
Last Post: korenron
  Read buffer from bluetooth frohr 2 3,216 Jun-01-2022, 01:31 PM
Last Post: frohr
  pymysql: insert query throws error wardancer84 12 7,219 Jan-28-2022, 06:48 AM
Last Post: wardancer84
  Scan for Bluetooth device korenron 0 3,463 Jan-10-2022, 01:06 PM
Last Post: korenron
  Sending string commands from Python to a bluetooth device Rovelin 13 15,567 Aug-31-2021, 06:40 PM
Last Post: deanhystad
  ModuleNotFoundError: No module named 'bluetooth' Error Rovelin 4 14,790 Aug-31-2021, 04:04 PM
Last Post: Rovelin
  Bluetooth send message after connecting? korenron 2 3,518 Apr-26-2021, 05:50 AM
Last Post: korenron
  using WinRt module in python script akhilgnair 0 2,601 Apr-23-2021, 05:38 AM
Last Post: akhilgnair

Forum Jump:

User Panel Messages

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