From: Scott James Remnant <scott@netsplit.com>
To: linux-bluetooth@vger.kernel.org
Cc: Scott James Remnant <scott@netsplit.com>
Subject: [PATCH] [RFC] doc: Add StartDiscoveryWithOptions
Date: Fri, 27 Jun 2014 12:16:29 -0700 [thread overview]
Message-ID: <1403896589-6135-1-git-send-email-scott@netsplit.com> (raw)
This patch proposes an extension to the D-Bus Adapter API to permit
the application to specify whether it wishes to discover BR/EDR
or LE devices.
Rationale is to permit an application, only interested in an LE device
with intent on using GATT to not cause the large power drain of
performing BR/EDR Inquiry.
---
doc/adapter-api.txt | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt
index 74d235a..668644d 100644
--- a/doc/adapter-api.txt
+++ b/doc/adapter-api.txt
@@ -22,6 +22,29 @@ Methods void StartDiscovery()
Possible errors: org.bluez.Error.NotReady
org.bluez.Error.Failed
+ void StartDiscoveryWithOptions(dict options)
+
+ This method starts the device discovery session, as
+ StartDiscovery(), but lets the client specify
+ additional options. Use StopDiscovery to release the
+ sessions acquired.
+
+ possible options:
+
+ boolean Classic:
+
+ Specifies whether discovery of BR/EDR
+ devices should be performed.
+
+ boolean LowEnergy:
+
+ Specifies whether discovery of LE
+ devices should be performed.
+
+ Possible errors: org.bluez.Error.NotReady
+ org.bluez.Error.Failed
+
+
void StopDiscovery()
This method will cancel any previous StartDiscovery
--
1.9.3 (Apple Git-50)
next reply other threads:[~2014-06-27 19:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-27 19:16 Scott James Remnant [this message]
2014-06-27 20:15 ` [PATCH] [RFC] doc: Add StartDiscoveryWithOptions Marcel Holtmann
2014-06-27 20:49 ` Scott James Remnant
2014-06-30 20:16 ` Scott James Remnant
2014-07-01 10:31 ` Marcel Holtmann
2014-07-01 15:24 ` Scott James Remnant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1403896589-6135-1-git-send-email-scott@netsplit.com \
--to=scott@netsplit.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox