- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content