bus = dbus.SystemBus()
-object = dbus.Interface(bus.get_object("org.moblin.connman", '/'),
+object = dbus.Interface(bus.get_object("net.connman", '/'),
"org.freedesktop.DBus.Introspectable")
-print object.Introspect()
+print(object.Introspect())
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+ "net.connman.Manager")
-properties = manager.GetProperties()
+technologies = manager.GetTechnologies()
-for path in properties["Technologies"]:
- technology = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Technology")
+for path, properties in technologies:
+ object = dbus.Interface(bus.get_object("net.connman", path),
+ "org.freedesktop.DBus.Introspectable")
- properties = technology.GetProperties()
-
- for path in properties["Devices"]:
- object = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.freedesktop.DBus.Introspectable")
-
- print object.Introspect()
+ print(object.Introspect())