This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Read characteristic using pc-ble-driver-py bindings

Hi all,

I am using the pc-ble-driver-py python bindings to interface with my BLE peripheral.

Based on the heart-rate-collector example I could get a list of all advertising devices, and connect to get a list of all characteristics.

Now I want to read the value from a characteristic, but I don't know how to do that.

Did anyone already manage to do this? Any help would be appreciated.

Parents
  • Hi,

    I needed to do the same, but while running the given example, it shows this error:

    File "C:\Python27\lib\site-packages\pc_ble_driver_py\ble_adapter.py", line 234, in enable_notification
    raise NordicSemiException('CCCD not found')
    pc_ble_driver_py.exceptions.NordicSemiException: CCCD not found

    Could you tell me why?

    The device I am connected to has characteristics stored in the UUID "0x2A26", How do I access that?

Reply
  • Hi,

    I needed to do the same, but while running the given example, it shows this error:

    File "C:\Python27\lib\site-packages\pc_ble_driver_py\ble_adapter.py", line 234, in enable_notification
    raise NordicSemiException('CCCD not found')
    pc_ble_driver_py.exceptions.NordicSemiException: CCCD not found

    Could you tell me why?

    The device I am connected to has characteristics stored in the UUID "0x2A26", How do I access that?

Children
No Data
Related