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 Reply Children
No Data
Related