Add SetRemoteProperty method for OOB mechanism
PATCH 1/1 Add SetRemoteProperty method for OOB mechanism
Add possibility of suppling some additional data (like class of device) when using OOB mechanism for pairing.
---
Sadly to handle all possible combination of acceptable parameters (extreme case is when there is a string and an array of a dict entries with string and variant with an array of bytes - sa{sv} -> v: ay) function must be rather complicated. I thought of dividing it, but this use case is rather individual and refactoring part of it out would tangled whole architecture.
doc/oob-api.txt | 16 ++++++++ plugins/dbusoob.c | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+), 0 deletions(-)
doc/oob-api.txt +16 -0
@@ -36,3 +36,19 @@ Methods array{byte} hash, array{byte} randomizer ReadLocalData() Possible errors: org.bluez.Error.Failed org.bluez.Error.InvalidArguments + + void SetRemoteProperty(string address, dict data) + + This method set new properties for device with specified + address, to be used when device is created. Please note + that Hash and Randomizer must be both given in the same + method call, otherwise it will be ignored. + + Currently supported keys: + + Class uint32 + Hash array{byte} + Randomizer array{byte} + + Possible errors: org.bluez.Error.Failed + org.bluez.Error.InvalidArguments
plugins/dbusoob.c +104 -0
122 lines not on this page · raw message
Signature · 1 line
1.7.4.1