I'm trying to combine conventional pairing with OOB NFC pairing, but I'm struggling to decide which libraries to use. I have been looking at the examples, and they all use 'nfc_ble_pair_lib.c'
Is this considered to be example code? Or a library which should preferably be used?
- This library has an assumption about when to start advertising (when an NFC device, e.g. phone is detected). In our application, we want to control advertising ourselves. E.g. Once we are advertising, we also want it to listen to the NFC peripheral. In case we are not advertising, NFC should be disabled. Is this considered to be exceptional for OOB pairing, not supported by the 'nfc_ble_pair_lib', or do I just misinterpret how to use the library?
- The library resets the I/O capabilities back to NONE (BLE_NFC_SEC_PARAM_IO_CAPS == BLE_GAP_IO_CAPS_NONE), and thereby possibly reduces security for conventional pairing. We would expect this define in the 'sdk_config', instead of locally in the source file.