pub unsafe fn sd_ble_gap_keypress_notify(conn_handle: u16, kp_not: u8) -> u32
Expand description

@brief Notify the peer of a local keypress.

@mscs @mmsc{@ref BLE_GAP_CENTRAL_LESC_BONDING_PKE_CD_MSC} @endmscs

@param[in] conn_handle Connection handle. @param[in] kp_not See @ref BLE_GAP_KP_NOT_TYPES.

@retval ::NRF_SUCCESS Keypress notification successfully queued for transmission. @retval ::NRF_ERROR_INVALID_PARAM Invalid parameter(s) supplied. @retval ::NRF_ERROR_INVALID_STATE Invalid state to perform operation. Either: - Authentication key not requested. - Passkey has not been entered. - Keypresses have not been enabled by both peers. @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied. @retval ::NRF_ERROR_BUSY The BLE stack is busy. Retry at later time.