RxAndroidBle icon indicating copy to clipboard operation
RxAndroidBle copied to clipboard

setPhy support in ScanSettings.Builder

Open jimboboliver opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. On new BLE 5.0+ devices can advertise long range using coded PHY. RxAndroidBle does not currently seem to have a way to configure for discovery over coded PHY. The RxAndroidBle ScanSettings.Builder only offers a subset of what is available in the Android ScanSettings.Builder.

Describe the solution you'd like I'd like to be able to configure a device scan to use all supported PHY using the RxAndroidBle ScanSettings.Builder. Here is a link to the ScanSettings.Builder setPhy

Additional context My development is actually using the RxAndroidBle through react-native-ble-plx -> MultiPlatformBleAdapter -> RxAndroidBle. I've managed to successfully setPreferredPhy once connected using a RxBleCustomOperation in MultiPlatformBleAdapter (thank you for making this possible).

Please let me know if there is currently a way to setPhy myself or whether this is a possible feature.

jimboboliver avatar Nov 16 '21 08:11 jimboboliver

Additionally, is there any plan to add onPhyUpdate to the RxBleGattCallback's nativeCallbackDispatchers?

jimboboliver avatar Nov 17 '21 05:11 jimboboliver