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

LESC check on the app ( ios & android )

Hi

I use LESC sdk & nrf connect app

How can I know if my nrf51 device and phone are bounding through LESC?

From nrf connect( ios ), how can I know from nrf connect(ios) that the nrf51 device is bounded?

Thanks.

  • Hi Johnny,

    You can check the sniffer trace to see what happened over the air.

    If you don't want to use the sniffer, you can check the BLE_GAP_EVT_AUTH_STATUS event and check which security level you end up. If it's LESC and MITM, you will have security mode 1 and level 4. Check p_ble_evt->evt.gap_evt.params.auth_status.sm1_levels.lv4 if it's =1 .

    If it's Just work you used, you will end up with security mode 1 and level 2 which is the same level as Legacy Pairing Just Work.

    I believe the iOS nRFConnect app will show you if the device is bonded in the app. It say "Not bonded" or "Bonded"

Related