summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-02-11 02:08:48 +0100
committerSven Gothel <[email protected]>2021-02-11 02:08:48 +0100
commitfafc1ec2908d424c648856e544579662d6b380f3 (patch)
treedf2af3294726e744039c1e149d3c7720fae26c59 /api
parenta37f49decb3c5a00af1ed21348c47c9c2b8374cb (diff)
BTDevice::setPairingPasskeyNegative(): Added API doc and missing Java binding. Hint: Better use setPairingPasskey(passkey = 0) ..
.. since current experience exposed a roughly 3s immediate disconnect handshake with certain devices and/or Kernel BlueZ code.
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/BTDevice.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/api/direct_bt/BTDevice.hpp b/api/direct_bt/BTDevice.hpp
index 9ffb3dfe..6cffb6a8 100644
--- a/api/direct_bt/BTDevice.hpp
+++ b/api/direct_bt/BTDevice.hpp
@@ -685,6 +685,28 @@ namespace direct_bt {
*/
HCIStatusCode setPairingPasskey(const uint32_t passkey) noexcept;
+ /**
+ * Method replies with a negative passkey response, i.e. rejection, see ::PairingMode::PASSKEY_ENTRY_ini.
+ * <p>
+ * You may call this method if the device shall be securely paired with ::PairingMode::PASSKEY_ENTRY_ini,
+ * i.e. when notified via AdapterStatusListener::devicePairingState() in state ::SMPPairingState::PASSKEY_EXPECTED.
+ * </p>
+ * <p>
+ * Current experience exposed a roughly 3s immediate disconnect handshake with certain devices and/or Kernel BlueZ code.
+ *
+ * Hence using setPairingPasskey() with `passkey = 0` is recommended, especially when utilizing
+ * automatic security negotiation via setConnSecurityAuto()!
+ * </p>
+ *
+ * @return HCIStatusCode::SUCCESS if the command has been accepted, otherwise ::HCIStatusCode may disclose reason for rejection.
+ * @see PairingMode
+ * @see SMPPairingState
+ * @see AdapterStatusListener::devicePairingState()
+ * @see setPairingPasskey()
+ * @see setPairingNumericComparison()
+ * @see getPairingMode()
+ * @see getPairingState()
+ */
HCIStatusCode setPairingPasskeyNegative() noexcept;
/**