-
Notifications
You must be signed in to change notification settings - Fork 609
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
Bonding fails on connect (Android) - Error Codes: #133, #137 #443
Comments
@d1mroberge That sounds right. Most BLE devices use "Just Works" so don't require pairing. Some devices require elevated permissions for encrypted read or write and will initiate a bonding process. IIRC I've had this work with the plugin. Maybe it's devices specific? Unfortunately I don't have many test devices that require bonding. |
@don thanks for getting back to us. Have you considered adding createBond() as a feature, or trying to pull it in from the evothings implementation that is already supported? |
Yes, it's be nice to have createBond(), getBondedDevices() in the plugin. I haven't needed it for a client yet so it's not there. |
Ok thanks. One more question, it seems that the connection is iffy when the app is run in the background or when you leave the connection for longer than a few minutes. Have you noted this behavior? For our project, sometimes a connection may need to be held for 8 hours. Is this type of behavior achievable with the plugin? |
ble.bondedDevices() is implemented. Created #605 for ble.createBond(). |
When we attempt to connect to a device, and then read its data, we are able to connect but then get kicked out. The status errors we get are #133 and #137. However, when we proceed to pair the device in the Bluetooth settings first, and then attempt to connect and read device data, everything works.
We believe the issue has to do with the fact that no bond is created when you connect. Is this a fair assumption? Has this issue been seen by anyone else?
After looking at the android src code for the plugin, it seems like there is no implementation of the createBond() function.
The text was updated successfully, but these errors were encountered: