This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC2640R2: Authentication Characteristic

Part Number: LAUNCHXL-CC2640R2

I am running 'Multi-role' project on CC2640R2 LaunchPad.

I can use a BLE applications on my iPad to connect to the board.

In 'Multi-role' project, the value of characteristic 5 is a 'GATT_PERMIT_AUTHEN_READ' type. In other words, it requires 'Read requires Authentication'.

But, I did not see the code to implement this feature here:

CONST gattServiceCBs_t simpleProfileCBs =
{
  simpleProfile_ReadAttrCB,  // Read callback function pointer
  simpleProfile_WriteAttrCB, // Write callback function pointer
  NULL                       // Authorization callback function pointer
};

Do you have any sample code and documents for this feature, 'Read requires Authentication'?

Thanks,

Steven

  • Hi,

    Authentication is not the same as authorization.
    Authentication is after you successful paired with MITM method, then you can access the characteristic.
    In multi-role with phones, you will get to entry the passcode, after the correct passcode is entered, you will be able to read the characteristic 5 value.

    For more information regarding authentication and authorization, please take a look at BLUETOOTH CORE SPECIFICATION Version 5.1, Vol3, Part G, section G.