Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

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.

case CYBLE_EVT_GAP_DEVICE_CONNECTED:

/* This event is received when device is connected over GAP layer */

            if(PairingEnabled)

            {

                cyBle_authInfo.authErr = CYBLE_GAP_AUTH_ERROR_NONE;

            }

            else

            {

                cyBle_authInfo.authErr = CYBLE_GAP_AUTH_ERROR_PAIRING_NOT_SUPPORTED;

            }

break;

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.

Thank you!

0 Likes
1 Solution
GyanC_36
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hello engenharia3_3567971 ,

    Pairing process starts after the BLE connection is established.

-Gyan

View solution in original post

0 Likes
1 Reply
GyanC_36
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hello engenharia3_3567971 ,

    Pairing process starts after the BLE connection is established.

-Gyan

0 Likes