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
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.