Hi,
I want to develop central code to discover vender specific service using pc-ble-driver-py.
The service_discovery function defined in ble_adapter.py can discover the vender service, but cannot collect it.
Because, the following guard conditions on Line: 326 prevent collection.
The following is an excerpt of the service_discovery function defined in ble_adapter.py. (line: 322-329)
322: if response["status"] == BLEGattStatusCode.success: 323: # Assign UUIDBase manually 324: # See: 325: # https://github.com/NordicSemiconductor/pc-ble-driver-py/issues/38 326: for s in response["services"]: 327: if s.uuid.value != BLEUUID.Standard.unknown: 328: s.uuid.base = base 329: self.db_conns[conn_handle].services.append(s)
What is the intent of this guard condition?
I have confirmed that the vender service can be collected by deleting the guard condition in line 326.