Good morning! I wrote a program to measure the rssi between my phone and my Arduino nano 33 BLE.
The program works while my phone shows "Pairing..." with arduino.
But the pairing still fails, so the program stops.
What app are you using on your phone. With an Android phone, both nrfConnect and LightBlue see the advertising device established by your code, and are able to connect to it.