Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ ble_hid_confirm_pairing()

int ble_hid_confirm_pairing ( bool accept)

#include <applications/gesture_recognition/src/ble/hid/ble_hid.h>

Accept or reject a pending pairing confirmation request.

Called from the UX state machine when the user acknowledges (or rejects) a passkey confirmation request triggered by the remote peer during pairing with MITM protection. This is only relevant when CONFIG_BLE_MITM_AUTH is enabled. If no confirmation request is currently pending, the function returns an error from the message queue API.

Parameters
accepttrue to confirm the pairing, false to reject it.
Returns
Operation status, 0 for success.
Return values
-ENOMSGNo pairing confirmation request is pending.
<0Other negative errno from the Bluetooth stack.