3 from __future__ import absolute_import, print_function, unicode_literals
9 manager = dbus.Interface(bus.get_object("org.bluez", "/"),
10 "org.freedesktop.DBus.ObjectManager")
12 objects = manager.GetManagedObjects()
14 for path in objects.keys():
15 print("[ %s ]" % (path))
17 interfaces = objects[path]
19 for interface in interfaces.keys():
20 if interface in ["org.freedesktop.DBus.Introspectable",
21 "org.freedesktop.DBus.Properties"]:
24 print(" %s" % (interface))
26 properties = interfaces[interface]
28 for key in properties.keys():
29 print(" %s = %s" % (key, properties[key]))