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.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] p_passkeyPointer to a 6-byte ASCII passkey buffer.

Return values

Return valueDescription
MBA_RES_SUCCESSPasskey provided successfully.
MBA_RES_FAILThe specified connection handle is invalid.