diff options
Diffstat (limited to 'test/test-adapter')
-rwxr-xr-x | test/test-adapter | 6 |
1 files changed, 6 insertions, 0 deletions
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) |