Hello, I am using the code in http://blog.csdn.net/u013606170/article/details/46038283 to create an app that will behave as a BLE peripheral. I am using a Nexus 6, in which the use of BluetoothLeAdvertiser is enabled.
My device manages to advertise itself. I can see it both on a desktop (windows 10) and in another Android smartphone. When I try to pair I get the following: 1- from Windows 10 I get no indication on my server side of the pairing request. The pairing fails after a long while, without any notice. 2- from the other Android - I get a pairing notification on the server side with a message that I should enter a given passkey on the other device. I enter the passkey on the other device and the pairing fails with a message that the passkey is wrong. Of course, I tried this many times just to be sure that I enter the right passkey. Any clue what the problem is, or how can I debug it? The failure report is on the client side, and I only implemented the server side, so I don't know how to check what the problem is. Unfortunately, it seems that there is very little information in the Android developer side how to use BluetoothGattServer or BluetoothLEAdvertiser, and there is no information at all how to manage pairing request in this mode of use. Thank you for any help or hint, Ouri. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/48f526d6-2685-42b8-af06-5935b355c786%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

