BLE_SMP_Keypress

C

uint16_t BLE_SMP_Keypress(uint16_t connHandle, uint8_t notifyType);

Description

Sends a keypress notification to the remote device to indicate key entry or erasure.

Note

This function should be called in response to the BLE_SMP_EVT_INPUT_PASSKEY_REQUEST event and only if the keypress field of BLE_SMP_EvtInputPasskeyReq_T is set to true.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] notifyTypeType of keypress notification. Refer to Keypress notification types for possible values.

Return values

Return valueDescription
MBA_RES_SUCCESSKeypress notification sent successfully.
MBA_RES_INVALID_PARAThe parameter is invalid.