BLE_SMP_GeneratePasskey
C
void BLE_SMP_GeneratePasskey(uint8_t *p_passkey);
Description
Generates a six-byte random passkey in ASCII format.
Note
This function should be invoked within the SMP callback when the BLE_SMP_EVT_DISPLAY_PASSKEY_REQUEST event occurs. After calling this function, BLE_SMP_PasskeyReply must be used to provide the generated passkey to the BLE Stack. The passkey should also be displayed to the user.
Parameters
Parameter | Description |
---|---|
[out] p_passkey | Pointer to buffer into which generated passkey is stored. |