NordicSemiconductor / pc-ble-driver-py

Python bindings for the ble-driver library
Other
126 stars 115 forks source link

BLEAdapter.service_discovery() does not register VS characteristic UUIDs, only services #187

Open ShannonGreen opened 3 years ago

ShannonGreen commented 3 years ago

Version: 0.15.0

service_discovery() correctly calls ble_vs_uuid_add to register vendor-specific service UUIDs but does not do the same for discovered characteristic UUIDs.

The approach is the same as for services - read the characteristic declaration handle to obtain the UUID, and then register it and rediscover the characteristic.

I can submit a pull request with an improved version of service_discovery().

adixmasz commented 3 years ago

Hi, can you submit the pull request with the improved version? I'm trying to resolve this problem in my scripts without success.