1.1.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
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] p_passkey | Pointer to the passkey buffer. The length of passkey should be 6 bytes in ASCII format. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully reply with passkey for pairing process. |
MBA_RES_FAIL | The specified connection handle is invalid. |