summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-12-15 17:17:03 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-12-15 17:17:03 +0100
commitab872c6f960dc3734ebf1c38dbbc4252009db2dc (patch)
tree098f6105f046fbdf3fc0c6f4a5d80208ee05089c
parent721f2c3b29d8107d511930f44e60c82115016fc3 (diff)
doc: Remove parameters for device pairing method
-rw-r--r--doc/device-api.txt19
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/device-api.txt b/doc/device-api.txt
index d7a30cd96..8cc6946ca 100644
--- a/doc/device-api.txt
+++ b/doc/device-api.txt
@@ -68,20 +68,23 @@ Methods void Connect()
Possible errors: org.bluez.Error.DoesNotExist
org.bluez.Error.NotConnected
- void Pair(object agent, string capability)
+ void Pair()
This method will connect to the remote device,
initiate pairing and then retrieve all SDP records
(or GATT primary services).
- The agent object path is assumed to reside within the
- process (D-Bus connection instance) that calls this
- method. No separate registration procedure is needed
- for it and it gets automatically released once the
- pairing operation is complete.
+ If the application has registered its own agent,
+ then that specific agent will be used. Otherwise
+ it will use the default agent.
- The capability parameter is the same as for the
- Adapter.RegisterAgent method.
+ Only for applications like a pairing wizard it
+ would make sense to have its own agent. In almost
+ all other cases the default agent will handle
+ this just fine.
+
+ In case there is no application agent and also
+ no default agent present, this method will fail.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.Failed