-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes onServiceDiscoverd is not called when connecting. #536
Labels
Comments
Sorry, I misunderstood, as I had restricted the log level output to logcat.
|
cwgthornton
added a commit
to cwgthornton/Android-BLE-Library
that referenced
this issue
Feb 22, 2025
It appears that when a service discovery is in progress and `onConnectionUpdated` is called, the service discovery callback `onServicesDiscovered` is never invoked. By checking to see `serviceDiscoverRequested` is set, we can restart the service discovery and get a result back. This may potentially fix NordicSemiconductor#536, but I was seeing this behaviour consistently when connecting to another BLE device
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The BleManager was used to connect with the peripheral device.
It is recognised that if the device is not a bonding device when connected, the
discoverService
is executed after a delay of 300 ms, but in reality the BluetoothGatt executes thediscoverService
immediately.I don't know if this is the direct cause, but sometimes BleManager's onServicesDiscovered is not called.
Am I missing some setting that is required for the connection?
The text was updated successfully, but these errors were encountered: