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

On PASSKEY re-input of LESC

Hi,

I am developing software supporting LEsecure using SDK 12.3 with nRF 51822.

Please tell me what to do when incorrect data is entered in "Passkey entry".

Currently we will send the input value again with sd_ble_gap_lesc_dhkey_reply, but it will be NRF_ERROR_INVALID_STATE.
Do I need to do something when I determine an error with BLE_GAP_EVT_AUTH_STATUS?

I really appreciate any help or comment.

Thanks

Parents
  • Hi.

    Have you looked at the Glucose Application example in the nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\ble_app_gls folder? This shows the code needed for passkey, and there is also an demonstration of the example here.

    When you tried to use sd_ble_gap_lesc_dhkey_reply after you tried the incorrect passkey you get NRF_ERROR_INVALID_STATE because you are disconnected from the device.

    You can read this in the infocenter.

    - Andreas

Reply
  • Hi.

    Have you looked at the Glucose Application example in the nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\ble_app_gls folder? This shows the code needed for passkey, and there is also an demonstration of the example here.

    When you tried to use sd_ble_gap_lesc_dhkey_reply after you tried the incorrect passkey you get NRF_ERROR_INVALID_STATE because you are disconnected from the device.

    You can read this in the infocenter.

    - Andreas

Children
Related