From 0b6b1da0dd654d32873aacf81791c58316b377e3 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 24 Nov 2008 16:27:51 -0300 Subject: Add discovering option to test-adapter. --- test/test-adapter | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/test-adapter b/test/test-adapter index e7c8640a..3645cb09 100755 --- a/test/test-adapter +++ b/test/test-adapter @@ -21,6 +21,7 @@ if (len(sys.argv) < 2): print " pairable [on/off]" print " discoverable [on/off]" print " discoverabletimeout [timeout]" + print " discovering" sys.exit(1) if (sys.argv[1] == "address"): @@ -88,5 +89,10 @@ if (sys.argv[1] == "discoverabletimeout"): adapter.SetProperty("DiscoverableTimeout", timeout) sys.exit(0) +if (sys.argv[1] == "discovering"): + properties = adapter.GetProperties() + print properties["Discovering"] + sys.exit(0) + print "Unknown command" sys.exit(1) -- cgit