1.1.2.1.4.4.12 BLE_SMP_PasskeyNegativeReply

C

uint16_t BLE_SMP_PasskeyNegativeReply(uint16_t connHandle);

Description

Reply to a passkey request event if local device cannot provide the 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.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully reply passkey is not available.
MBA_RES_FAILThe specified connection handle is invalid.