LeandroSQ / android-ble-made-easy

An Android Library for handling Bluetooth Low Energy on Android Easy
MIT License
88 stars 29 forks source link

How can I wait until BLE is paired. #34

Closed Dj-EKI closed 1 year ago

Dj-EKI commented 1 year ago

When I pair my device, it takes a certain amount of time for the connection to be established. The BLE connection is established before bonding(SecurityAuth). Thus, all functions such as "observe" or "read" are no longer functional. The only way I've found at the moment is to use a long "delay" before the first observe or read.

LeandroSQ commented 1 year ago

Hello, thank you for your issue :)

Would be kind to share a code snippet on how are you using it to connect? Also, just to clarify, you are pairing with encryption?

LeandroSQ commented 1 year ago

Closing due to inactivity, please let me know if you would like it to be reopened.