1 Reply Latest reply on Jul 13, 2018 12:39 AM by Gyan Chand

    Manually enter pairing mode no input/ouput

    engenharia3_3567971

      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!