This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

LESC Just Works peripheral example

Is there a simple example which supports LESC Just Works for peripheral mode only? The lesc_multirole example seems a bit  too much since that also supports central role. I also looked at the ble_app_hrs_nfc_pairing but it seems tightly connected to the nfc pairing library. 

Otherwise, what are the necessary steps for lesc just works? I've added

// Generate new LESC keys
ret_code = ecc_p256_keypair_gen(m_lesc_sk.sk, m_lesc_pk.pk);
APP_ERROR_CHECK(ret_code);

// Update Peer Manager with new LESC Public Key
ret_code = pm_lesc_public_key_set(&m_lesc_pk);
APP_ERROR_CHECK(ret_code);

to peer_manager_init but I also need to add something to the ble_evt_handler

Parents
  • Hi,

    In SDK 15.1 we have added LESC to ble_app_hrs, ble_app_hrs_c, and ble_app_gls. If we look at ble_app_hrs you can check the nRF_Crypto section in sdk_config.h to see which library is enabled then disable the others (or remove them) that is not in use. something like this (doing this in keil as it is much easier to get an overview of sdk_config.h here...):

Reply
  • Hi,

    In SDK 15.1 we have added LESC to ble_app_hrs, ble_app_hrs_c, and ble_app_gls. If we look at ble_app_hrs you can check the nRF_Crypto section in sdk_config.h to see which library is enabled then disable the others (or remove them) that is not in use. something like this (doing this in keil as it is much easier to get an overview of sdk_config.h here...):

Children
No Data
Related