dariuszseweryn / RxAndroidBle

An Android Bluetooth Low Energy (BLE) Library with RxJava3 interface
http://polidea.github.io/RxAndroidBle/
Apache License 2.0
3.45k stars 582 forks source link

Force a discoverServices refresh #861

Open xvrh opened 1 month ago

xvrh commented 1 month ago

The method RxBleConnection.discoverServices caches the result.

How do we force the refresh of the service list?

For example, my device will expose a different set of bluetooth Services/Characteristics after we've send a special permission code.

Thanks a lot

dariuszseweryn commented 1 month ago

You can use a custom operation, like this

Then you can use the functions that accept BluetoothGattCharacteristic instead of the UUID