I currently have a CC2540 that implements a few profiles, one of which is HID. HID requires encrypted pairing (using a pin) which I understand, but this can be annoying for users that want to connect the CC2540 without using HID. What I would like to do is connect the CC2540 to a computer and have it delay a few seconds before allowing the pairing pin. During these few second the computer can send a message through one of our custom gatt characteristics to cancel the pairing request.
I've tried calling gapBondMgrSlaveSecurityReq() after the delay, but this doesn't seem to work properly. I assume this is due to the fact that the pairing request must come from the computer instead of the CC2540 for HID. Does anyone have any ideas on how to implement this?
Best,
Nathan