Use WiFi.Name property for network selection
[platform/upstream/connman.git] / test / list-devices
1 #!/usr/bin/python
2
3 import dbus
4
5 bus = dbus.SystemBus()
6
7 manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
8                                         "org.moblin.connman.Manager")
9
10 properties = manager.GetProperties()
11
12 for path in properties["Devices"]:
13         element = dbus.Interface(bus.get_object("org.moblin.connman", path),
14                                                 "org.moblin.connman.Element")
15
16         properties = element.GetProperties()
17
18         print "[ %s ]" % (path)
19
20         for key in properties.keys():
21                 print "    %s = %s" % (key, properties[key])
22
23         print