From: Inga Stotland <inga.stotland@intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: brian.gix@intel.com, Inga Stotland <inga.stotland@intel.com>
Subject: [PATCH BlueZ 1/4] doc/mesh-api: Forward compatibility modifications
Date: Fri, 27 Mar 2020 11:42:54 -0700 [thread overview]
Message-ID: <20200327184257.15042-2-inga.stotland@intel.com> (raw)
In-Reply-To: <20200327184257.15042-1-inga.stotland@intel.com>
The following methods are modified to allow for future development:
Interface org.bluez.mesh.Management1:
Old: void UnprovisionedScan(uint16 seconds)
New: void UnprovisionedScan(dict options)
The options parameter is a dictionary with the following keys defined:
uint16 Seconds
Specifies number of seconds for scanning to be active.
If set to 0 or if this key is not present, then the
scanning will continue until UnprovisionedScanCancel()
or AddNode() methods are called.
other keys TBD
Old: void AddNode(array{byte}[16] uuid)
New: void AddNode(array{byte}[16] uuid, dict options)
The options parameter is currently an empty dictionary
Interface org.bluez.mesh.Provisioner1
Old: void ScanResult(int16 rssi, array{byte} data)
New: void ScanResult(int16 rssi, array{byte} data, dict options)
The options parameter is currently an empty dictionary
---
doc/mesh-api.txt | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
diff --git a/doc/mesh-api.txt b/doc/mesh-api.txt
index 131de6bfd..cc351b635 100644
--- a/doc/mesh-api.txt
+++ b/doc/mesh-api.txt
@@ -455,14 +455,20 @@ Object path /org/bluez/mesh/node<uuid>
CreateNetwork() or Import()
Methods:
- void UnprovisionedScan(uint16 seconds)
+ void UnprovisionedScan(dict options)
This method is used by the application that supports
org.bluez.mesh.Provisioner1 interface to start listening
- (scanning) for unprovisioned devices in the area. Scanning
- will continue for the specified number of seconds, or, if 0 is
- specified, then continuously until UnprovisionedScanCancel() is
- called or if AddNode() method is called.
+ (scanning) for unprovisioned devices in the area.
+
+ The options parameter is a dictionary with the following keys
+ defined:
+
+ uint16 Seconds
+ Specifies number of seconds for scanning to be active.
+ If set to 0 or if this key is not present, then the
+ scanning will continue until UnprovisionedScanCancel()
+ or AddNode() methods are called.
Each time a unique unprovisioned beacon is heard, the
ScanResult() method on the app will be called with the result.
@@ -482,7 +488,7 @@ Methods:
org.bluez.mesh.Error.InvalidArguments
org.bluez.mesh.Error.NotAuthorized
- void AddNode(array{byte}[16] uuid)
+ void AddNode(array{byte}[16] uuid, dict options)
This method is used by the application that supports
org.bluez.mesh.Provisioner1 interface to add the
@@ -491,6 +497,10 @@ Methods:
The uuid parameter is a 16-byte array that contains Device UUID
of the unprovisioned device to be added to the network.
+ The options parameter is a dictionary that may contain
+ additional configuration info (currently an empty placeholder
+ for forward compatibility).
+
PossibleErrors:
org.bluez.mesh.Error.InvalidArguments
org.bluez.mesh.Error.NotAuthorized
@@ -927,7 +937,7 @@ Service unique name
Interface org.bluez.mesh.Provisioner1
Object path freely definable
- void ScanResult(int16 rssi, array{byte} data)
+ void ScanResult(int16 rssi, array{byte} data, dict options)
The method is called from the bluetooth-meshd daemon when a
unique UUID has been seen during UnprovisionedScan() for
@@ -943,6 +953,10 @@ Object path freely definable
bit set in OOB mask). Whether these fields exist or not is a
decision of the remote device.
+ The options parameter is a dictionary that may contain
+ additional scan result info (currently an empty placeholder for
+ forward compatibility).
+
If a beacon with a UUID that has already been reported is
recieved by the daemon, it will be silently discarded unless it
was recieved at a higher rssi power level.
--
2.21.1
next prev parent reply other threads:[~2020-03-27 18:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-27 18:42 [PATCH BlueZ 0/4] API changes for forward compatibility Inga Stotland
2020-03-27 18:42 ` Inga Stotland [this message]
2020-03-27 18:42 ` [PATCH BlueZ 2/4] mesh: Update UnprovisionedScan, AddNode & ScanResult Inga Stotland
2020-03-27 21:17 ` Gix, Brian
2020-03-27 22:22 ` Stotland, Inga
2020-03-27 18:42 ` [PATCH BlueZ 3/4] test/test-mesh: Update to match modified APIs Inga Stotland
2020-03-27 18:42 ` [PATCH BlueZ 4/4] tools/mesh-cfgclient: " Inga Stotland
2020-03-30 22:07 ` [PATCH BlueZ 0/4] API changes for forward compatibility Gix, Brian
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=20200327184257.15042-2-inga.stotland@intel.com \
--to=inga.stotland@intel.com \
--cc=brian.gix@intel.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