From: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx> It creates and then release the Pairing Session after 20 seconds. --- test/test-adapter | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test-adapter b/test/test-adapter index 5deeda4..2ed5348 100755 --- a/test/test-adapter +++ b/test/test-adapter @@ -136,6 +136,14 @@ if (args[0] == "discoverabletimeout"): adapter.Set("org.bluez.Adapter1", "DiscoverableTimeout", to) sys.exit(0) +if (args[0] == "pairing"): + adapter1 = dbus.Interface(bus.get_object("org.bluez", adapter_path), + "org.bluez.Adapter1") + adapter1.EnablePairing() + time.sleep(20); + adapter1.DisablePairing() + sys.exit(0) + if (args[0] == "discovering"): discovering = adapter.Get("org.bluez.Adapter1", "Discovering") print(discovering) -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html