diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-27 16:47:16 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-27 16:47:16 -0300 |
commit | fea35c375a4c1a90883331878249ba02a08db1d4 (patch) | |
tree | e7f8a8cbde0277b1235cd2d2ab3608312b624514 /test | |
parent | 3ee81cab2ed66b7f3d4fbd6ba6676d5d9448d6dc (diff) |
Add support for PairableTimeout property on adapter-test.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-adapter | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-adapter b/test/test-adapter index 3645cb09..3486b2f8 100755 --- a/test/test-adapter +++ b/test/test-adapter @@ -19,6 +19,7 @@ if (len(sys.argv) < 2): print " mode [mode]" print " requestmode <mode>" print " pairable [on/off]" + print " pairabletimeout [timeout]" print " discoverable [on/off]" print " discoverabletimeout [timeout]" print " discovering" @@ -66,6 +67,15 @@ if (sys.argv[1] == "pairable"): adapter.SetProperty("Pairable", value) sys.exit(0) +if (sys.argv[1] == "pairabletimeout"): + if (len(sys.argv) < 3): + properties = adapter.GetProperties() + print properties["PairableTimeout"] + else: + timeout = dbus.UInt32(sys.argv[2]) + adapter.SetProperty("PairableTimeout", timeout) + sys.exit(0) + if (sys.argv[1] == "discoverable"): if (len(sys.argv) < 3): properties = adapter.GetProperties() |