![]() |
Edge AI Add-on API 2.2.0
|
| 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.
| accept | true to confirm the pairing, false to reject it. |
| -ENOMSG | No pairing confirmation request is pending. |
| <0 | Other negative errno from the Bluetooth stack. |