manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
"org.moblin.connman.Manager")
-devices = manager.ListDevices()
-
-for path in devices:
- print "[ %s ]" % (path)
+elements = manager.ListElements()
+for path in elements:
element = dbus.Interface(bus.get_object("org.moblin.connman", path),
"org.moblin.connman.Element")
properties = element.GetProperties()
+ if (properties["Type"] != "device"):
+ continue
+
+ print "[ %s ]" % (path)
+
for key in properties.keys():
print " %s = %s" % (key, properties[key])