1.2.2.1.4.4.5 BLE_SMP_GeneratePasskey
C
void BLE_SMP_GeneratePasskey(uint8_t *p_passkey);
Description
Generate six bytes random passkey in ASCII format.
Note
This API should be called in SMP callback function when BLE_SMP_EVT_DISPLAY_PASSKEY_REQUEST event is generated. Following this API BLE_SMP_PasskeyReply should be called to send the passkey generated to the SDK and the passkey should be displayed to the user.
Parameters
Parameter | Description |
---|---|
[out] p_passkey | Pointer to buffer into which generated passkey is stored. |