Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] [RFC] doc: Add StartDiscoveryWithOptions
@ 2014-06-27 19:16 Scott James Remnant
  2014-06-27 20:15 ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: Scott James Remnant @ 2014-06-27 19:16 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Scott James Remnant

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)


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-01 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 19:16 [PATCH] [RFC] doc: Add StartDiscoveryWithOptions Scott James Remnant
2014-06-27 20:15 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox