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])