H,
I have a problem, that I can connect to my BT device without entering the PIN upon first paring.
The device is based on nRF52832 and I followed peripheral_sc_only sample, which I found sets the correct security level for required pairing.
I am using: Zephyr OS build v2.4.0-ncs1
Here is also my prj.conf (there are also other settings, but I believe those are important for mandatory pairing):
# Enable settings CONFIG_BT_SETTINGS=y CONFIG_FLASH=y CONFIG_FLASH_PAGE_LAYOUT=y CONFIG_FLASH_MAP=y CONFIG_NVS=y CONFIG_SETTINGS=y # Enable explicit pairing CONFIG_BT_SMP=y CONFIG_BT_SMP_SC_ONLY=y CONFIG_BT_TINYCRYPT_ECC=y CONFIG_BT_FIXED_PASSKEY=y #CONFIG_BT_SMP_ENFORCE_MITM=y CONFIG_BT_BONDING_REQUIRED=y
When I use nRF Connect on my phone, I can see the device on the Scan tab and if I click connect, the dialog for pairing appears, but also the services discovered.
If I click Cancel and quickly on one of the services discovered, I can then click on all of them and can send data to my device.
Is there any other option I need to turn on, so I can make paring "really" mandatory?
Thanks,
Matej