Android Bluetooth Ble Prevent Pair Request -


thanks check question.

i used codes in android developer make ble connect:

bluetoothdevice device = mbluetoothadapter.getremotedevice(address);     if (device == null) {         log.w(tag, "device not found.  unable connect.");         return false;     }     // want directly connect device, setting autoconnect     // parameter false.     if (mbluetoothgatt != null) {         mbluetoothgatt.close();         mbluetoothgatt = null;     }     mbluetoothgatt = device.connectgatt(this, false, mgattcallback); 

but after codes worked, pair dialog show up, , don't need pair work, need connect client , send datas(the remote device need connect has been set "no need pair"), there way avoid pair call?

thanks!

the pairing dialog put if remote device sends "security request" packet, indicating pair. "no need pair" setting reason doesn't seem work correctly...


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -