S115 SoftDevice for nRF54LM20 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_gap_keypress_notify()

uint32_t sd_ble_gap_keypress_notify ( uint16_t conn_handle,
uint8_t kp_not )

#include <ble_gap.h>

Notify the peer of a local keypress.

Relevant Message Sequence Charts
Peripheral LESC Bonding: Passkey Entry, User Inputs on Peripheral
Parameters
[in]conn_handleConnection handle.
[in]kp_notSee GAP Keypress Notification Types.
Return values
NRF_SUCCESSKeypress notification successfully queued for transmission.
NRF_ERROR_INVALID_PARAMInvalid parameter(s) supplied.
NRF_ERROR_INVALID_STATEInvalid state to perform operation. Either:
  • Authentication key not requested.
  • Passkey has not been entered.
  • Keypresses have not been enabled by both peers.
BLE_ERROR_INVALID_CONN_HANDLEInvalid connection handle supplied.
NRF_ERROR_BUSYThe BLE stack is busy. Retry at later time.