Usage of pm_lesc_public_key_set() in peer manager

Hi,

I am trying to implement LESC bonding into my nRF51 application. After a lot of debugging, I assume that pm_lesc_public_key_set() needs to be called before any secure pairing can succeed.

My question is:

  • How/when do I need to call that function?
  • How do I generate such a public key?
  • Do I need to keep the key secret?

Kind regards,

Daniel Dakhno

Related