How to enable BLE PIN based security for Arduino Nano 33 BLE?

Hi,

I need to enable PIN based security for my dev. project on Nano 33 BLE, by PIN security I mean force mobile app to enter a hard-coded PIN to connect to my BLE device.

I know that we can access some of Nordic API directly from Arduino code, like setting TX power level for ex., so can I somehow configure BLE security manager to utilize PIN by accessing Nordic APi directly? If yes, could you provide or point me to some examples, please?

Related