BLE_SMP_PasskeyReply
C
uint16_t BLE_SMP_PasskeyReply(uint16_t connHandle, uint8_t *p_passkey);Description
Responds to a passkey request event with the passkey.
Note
Call this in response to BLE_SMP_EVT_INPUT_PASSKEY_REQUEST or BLE_SMP_EVT_DISPLAY_PASSKEY_REQUEST events during pairing.
Events generated
Refer to the events generated by BLE_SMP_InitiatePairing for the pairing procedure context.
Parameters
| Parameter | Description |
|---|---|
| [in] connHandle | Connection handle associated with this connection. |
| [in] p_passkey | Pointer to a 6-byte ASCII passkey buffer. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Passkey provided successfully. |
| MBA_RES_FAIL | The specified connection handle is invalid. |
