petzval / btferret

Python and C Bluetooth Library
MIT License
126 stars 22 forks source link

How to change the connection priority in btferret LE client ? #51

Closed gregoiregentil closed 2 months ago

gregoiregentil commented 2 months ago

On Android, it's possible to change the BLE connection priority:

requestConnectionPriority (int connectionPriority)

https://developer.android.com/reference/android/bluetooth/BluetoothGatt#requestConnectionPriority(int)

Is this possible to do the same in btferret when connecting as a BLE client? Especially, I want to use CONNECTION_PRIORITY_HIGH.

petzval commented 2 months ago

Android's connection priority refers to the interval setting which is how often the Bluetooth adapter sends packets. See the functions set_le_interval, set_le_interval_update and set_le_interval_server.

gregoiregentil commented 2 months ago

Thank you.