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
| Parameter | Description |
|---|---|
| [in] connHandle | Connection handle associated with this connection. |
| [in] notifyType | Type of keypress notification. Refer to Keypress notification type for possible values. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Keypress notification sent successfully. |
| MBA_RES_INVALID_PARA | The parameter is invalid. |
