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.

Access bluetooth session key after pairing

Hi guys


For my application I need to acces the bluetooth session key which should be exchanged while pairing. I should also be able to access it directly after a GAPBOND_PAIRING_STATE_COMPLETE callback.

Can someone help?

Cheers,

Leon

  • Hello Leon,

    The Long Term Key (LTK) is stored by the GAP Bond Manager and not exposed to the application via callback. In BLE, link layer encryption is managed by the Controller so the application does not need the key. If you want to extract it, you can study gapbondmgr.c to see how it's stored in the SNV.

    Best wishes