In my psoc4ble application,it is a Peripheral-Server and No Input No Output device, now it can be scanned when advertising, and will accept any pairing request unlimitedly, but I need this device can be paired only when user activates the pairing mechanism (such as press the pairing button).
I decided to do as I found on the forum, and it works.
/* This event is received when device is connected over GAP layer */
cyBle_authInfo.authErr = CYBLE_GAP_AUTH_ERROR_NONE;
cyBle_authInfo.authErr = CYBLE_GAP_AUTH_ERROR_PAIRING_NOT_SUPPORTED;
My question is:
Even if you do not pair, it connects, and I can see the active services.
How do I solve it? I need it to connect after pairing is complete.