This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Passkey Generation

Hello Gentlemen,

Is it possible to know the passkey before the BLE_GAP_EVT_PASSKEY_DISPLAY event?

my nRF sensor is set as a display only and my central is an Android device.

Thanks, Gil

Parents
  • Hi Gilson,

    Unfortunately the passkey is randomly generated right before you receive the BLE_GAP_EVT_PASSKEY_DISPLAY event, and you can therefore not know it before you receive it.

    BR Pål

    [update 2014-07-02] With the latest softdevice www.nordicsemi.com/.../S110-SoftDevice-v7.0 you will be able to set a static passkey.

    By using the API call sd_ble_opt_set() with the structure ble_gap_opt_passkey_t, then the passkey display event will come with the passkey you set.

Reply
  • Hi Gilson,

    Unfortunately the passkey is randomly generated right before you receive the BLE_GAP_EVT_PASSKEY_DISPLAY event, and you can therefore not know it before you receive it.

    BR Pål

    [update 2014-07-02] With the latest softdevice www.nordicsemi.com/.../S110-SoftDevice-v7.0 you will be able to set a static passkey.

    By using the API call sd_ble_opt_set() with the structure ble_gap_opt_passkey_t, then the passkey display event will come with the passkey you set.

Children
Related