1.2.2.1.4.4.13 BLE_SMP_PasskeyReply

C

uint16_t BLE_SMP_PasskeyReply(uint16_t connHandle, uint8_t *p_passkey);

Description

Reply to a passkey request event with passkey information.

Note

The API should be called in response to passkey entry request or passkey display request. Hence, it should be called in SMP callback function when BLE_SMP_EVT_INPUT_PASSKEY_REQUEST event or BLE_SMP_EVT_DISPLAY_PASSKEY_REQUEST event is generated. These events are received only when passkey entry method is selected for pairing (LE secure connections or Legacy pairing).

Events generated

This API is called during pairing procedure, please see the events generated of BLE_SMP_InitiatePairing.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] p_passkeyPointer to the passkey buffer. The length of passkey should be 6 bytes in ASCII format.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully reply with passkey for pairing process.
MBA_RES_FAILThe specified connection handle is invalid.