when I use the .connect function and a MAC address allready associated (to my android 4.0.4 galaxy tab 10.1) the system allways ask me for the pin code of the bluetooth device.
When I write the pin code the connection work correctly, but if I close the connection and reopen it the system ask me the PIN.
I checked at the system settings and the device is correctly paired.
Please help me :(
I too have the same problem with the device pairing, hope it get fixed soon or does someone already have a workaround for this?
@CalebMuhia what hardware are you using? What Android version?
@don Can I give you some more informations to resolve this issue?
@CalebMuhia I found a GT-P7510 with 4.0.4, I'l try and duplicate the problem in the next few days
Thanks @don :)
@scloby @CalebMuhia I am able to duplicate the problem on a GT-P7510 Samsung Tab using with a Seeed Studio Bluetooth shield.
Here's some more info http://kenneththorman.blogspot.com/2013/06/android-403-and-404-bluetooth-pairing.html
I'll work on a solution
@scloby @CalebMuhia Based on the info in http://kenneththorman.blogspot.com/2013/06/android-403-and-404-bluetooth-pairing.html it looks like Android 4.0.3 and 4.0.4 have a problem with the Secure Bluetooth connection. I was able to get the GT-P7510 to prompt every time for the Bluetooth password.
I modified a local copy to use an Insecure Bluetooth connection and it works on the Galaxy Tab without prompting the user.
bluetoothSerial.connectInsecure(macAddress, success , failure);
Add API for Insecure Bluetooth connections.
Android only. See http://goo.gl/1mFjZY
Fixes #8 - add connectInsecure
Fixes #9 - fix logic