Page 1 of 1

How do determine of a BLE connection has Packet Data Length Extension feature enabled?

Posted: Sat Feb 25, 2023 8:29 pm
by zapta1
Our app uses ESP32/ESPIDF/Bluedroid for BLE connection between a device and a PC. For proper throughput, the connection need to use the Packet Data Length Extension feature (see image below) to avoid fragmentation and reduce transfer rate.

Is it possible for the ESP firmware to query the Bluedroid stack if the connection has this feature enabled or not? This can be done for example using an API function call, or via one of the various event callback handlers of the Bluedroid stack.

Image

Re: How do determine of a BLE connection has Packet Data Length Extension feature enabled?

Posted: Sat Feb 25, 2023 9:10 pm
by zapta1
Seems to be related to this mask though I am not sure how to pass the value from the connection to the app.

https://github.com/espressif/esp-idf/bl ... fs.h#L1899