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

Data length update with pc-ble-driver-py library

Hi everyone,

I am trying to start a data length update procedure from a central that I am developing with python using the library pc-ble-driver-py.

However, I keep having the error 0x13 which corresponds to a timeout (generated in the function "ble_gap_data_length_update"). I had to add the event "on_gap_evt_data_length_updated" in the adapter.py file, but still nothing.

I saw on the github of the library that this event has been removed at a previous commit saying that only the API v3 supports this event.

Does this mean that I cannot start a data length from the central with API v5? why is the event "gap_evt_data_length_update = driver.BLE_GAP_EVT_DATA_LENGTH_UPDATE" still figure in the driver.py file? 

Can the central still receive and treat a data length update request from a peripheral?

Thanks in advance

Imen

Related