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

ParameterDescription
[out] p_passkeyPointer to a buffer where the generated passkey will be stored.