I am building an app to read data from a ble device. After connecting to a device I call mBluetoothGatt.discoverServices()
and in onServicesDiscovered(..)
I am reading the list of service by calling getServices()
.
The problem is sometimes the list is empty.Has anyone faced this issue.The issue is random and not 100% reproducible.
Yes,this is a Common problem.If you get empty services,you can retry discover . If you get empty more than 3 or 5 times,you should restart you Bluetooth,because it is may be unstable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With