We are building a device without display other than a couple LEDs and no input possibilities based on a nRF5340 + nRF7002. For the WiFi provisioning and for other data transfer we use a BLE link. We want to ensure that only the owner of the device can connect to it and set it up.
The plan I had was to print a random number to a label (probably both printed and encoded in a QR code) and require input of this number/key somewhere during the pairing process to avoid someone from outside the building or next apartment setting up the device or reading out data. The key would be provisioned to the device during manufacturing as well. In the end a process as you had it back in BR/EDR times with the passkey during pairing of headphones or so.
Can someone help me out here on the right terminology and feature set that I have to use and can give me advice on the compatibility?
If I get it right, you rather want to use LE Secure Connections, since they provide both Authentication and Encryption. Can I use out-of-band pairing here? I didn't find samples in both Zephyr or the NCS for out-of-band pairing without also using NFC. What is the relation/difference between OOB pairing and passkey (I guess something like the passkey could be good enough for our use case as well). Do we have to consider feature support in the mobile OSs? Does it make sense to disable the LE legacy pairing or would this be problematic for compatibility with consumer smartphones?
I guess I am actually just not capable to find the right level of documentation. Something like a sample would probably point me in the right directions.