Home | History | Annotate | Download | only in test
      1 import dbus
      2 
      3 bus = dbus.SystemBus()
      4 
      5 
      6 dummy = dbus.Interface(bus.get_object('org.bluez', '/'), 'org.freedesktop.DBus.Introspectable')
      7 
      8 #print dummy.Introspect()
      9 
     10 
     11 manager = dbus.Interface(bus.get_object('org.bluez', '/'), 'org.bluez.Manager')
     12 
     13 try:
     14 	adapter = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'org.bluez.Adapter')
     15 except:
     16 	pass
     17