I want to QN9021 sends security request to Android cell phone, after Android cell phone APP(nRF connect or LightBlue) connected QN9021. Then Android cell phone will pairing and bonding QN9021. So I "add app_gap_security_req();" after connected.
But there are always two PAIRING_REQUEST from Android phone. See the picture and attached video.
Do you know how to avoid the first pairing request "[Broadcast] Action received: android.bluetooth.device.action.PAIRING_REQUEST, pairing variant: PAIRING_VARIANT_CONSENT (3)"?
Because there are two PAIRING_REQUEST from Android cell phone, but QN9021 just sent one security request to Android cell phone.
My question is the two PAIRING_REQUEST is normal? Is it caused by QN9021? And how to remove the first PAIRING_REQUEST from Android cell phone. Just only need one PAIRING_REQUEST from Android cell phone.
The value that you are seeing is expected for the Android paring process.
Pairing variant where the user is expected to consent to the pairing process. The caller is responsible for ensuring the user is prompted appropriately and user consent obtained for pairing.
It is necessary to conclude the pairing process, after obtaining user consent.