Skip to content

API changes for forward compatibility

Inga Stotland linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4doc/mesh-api: Forward compatibility modificationsdoc/mesh-api.txt+21 -70 replies
2/4mesh: Update UnprovisionedScan, AddNode & ScanResultmesh/manager.c+30 -92 replies
3/4test/test-mesh: Update to match modified APIstest/test-mesh+25 -140 replies
4/4tools/mesh-cfgclient: Update to match modified APIstools/mesh-cfgclient.c+30 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH BlueZ 0/4] API changes for forward compatibility

The changes are contained to Management and Provisioner APIs.

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

Inga Stotland (4):
doc/mesh-api: Forward compatibility modifications
mesh: Update UnprovisionedScan, AddNode & ScanResult test/test-mesh: Update to match modified APIs tools/mesh-cfgclient: Update to match modified APIs

 doc/mesh-api.txt       | 28 +++++++++++++++++++++-------
 mesh/manager.c         | 39 ++++++++++++++++++++++++++++++---------
 test/test-mesh         | 39 +++++++++++++++++++++++++--------------
 tools/mesh-cfgclient.c | 36 ++++++++++++++++++++++++++++++------
 4 files changed, 106 insertions(+), 36 deletions(-)
Signature · 1 line
2.21.1