bus = dbus.SystemBus()
-object = dbus.Interface(bus.get_object('org.moblin.connman', '/'),
- 'org.freedesktop.DBus.Introspectable')
+object = dbus.Interface(bus.get_object("net.connman", '/'),
+ "org.freedesktop.DBus.Introspectable")
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")
-interfaces = manager.ListInterfaces()
+technologies = manager.GetTechnologies()
-for path in interfaces:
- object = dbus.Interface(bus.get_object('org.moblin.connman', path),
- 'org.freedesktop.DBus.Introspectable')
+for path, properties in technologies:
+ object = dbus.Interface(bus.get_object("net.connman", path),
+ "org.freedesktop.DBus.Introspectable")
print object.Introspect()