petzval / btferret

Python and C Bluetooth Library
MIT License
111 stars 21 forks source link

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

Closed gregoiregentil closed 1 week ago

gregoiregentil commented 1 week 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 1 week 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 1 week ago

Thank you.