Commit: c3f7b6733c5fa4881fc27a2bd4d17064db948e2a
Parent: 19cb7b8c8afb58981f932edb3bf0bfd7443f61f7
Author: Szymon Janc <szymon.janc@codecoup.pl>
Committer: Szymon Janc <szymon.janc@codecoup.pl>
Date: 2018-02-21 16:05:52
Tree: c27a9c0b9914d31d92e919624ae833387ee1fb16

adapter: Add ConnectDevice method This allows to connect device without doing general discovery. This is needed for some of qualification tests where there is no general discovery upfront and we need to do connection to device with provided address. Another usecase is for scenario where scanning happen on one controller but connection handling on another. New device object is announced only if physical connection was successful. On success this method returns path to created device object. After ConnectProfile return bluetoothd continue with services discovery and profile connection. This patch implements bare minimum properties needed for connection - address and address type. If needed eg. for non-NFC based OOB it could be extended with more options.

Diffstat

M doc/adapter-api.txt | 38 ++++++++++++++++++++++++++++++++++++++
M src/adapter.c | 183 ++++++++++++++++++++++++++++++++++++++++
M src/device.c | 30 ++++++++++++++++- - - - - - - - - - - - - -

3 files changed, 237 insertions(+), 14 deletions(-)

View Full Diff | Patch