X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=test%2Flist-devices;h=691a6fbe482c5fc8719b67f7b614f76e939adaca;hb=97fc312c6036c72eb392dcefe080e30404673f18;hp=9b9615bb69e160d9b2438748e9a1c76af580ad1b;hpb=85161ed17c46ce91fa768576f54c6e2278c07f34;p=connman diff --git a/test/list-devices b/test/list-devices index 9b9615b..691a6fb 100755 --- a/test/list-devices +++ b/test/list-devices @@ -7,15 +7,16 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), "org.moblin.connman.Manager") -devices = manager.ListDevices() +properties = manager.GetProperties() -for path in devices: - print "[ %s ]" % (path) +for path in properties["Devices"]: + device = dbus.Interface(bus.get_object("org.moblin.connman", path), + "org.moblin.connman.Device") + + properties = device.GetProperties() - element = dbus.Interface(bus.get_object("org.moblin.connman", path), - "org.moblin.connman.Element") + print "[ %s ]" % (path) - properties = element.GetProperties() for key in properties.keys(): print " %s = %s" % (key, properties[key])