1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import dbus import bluezutils bus = dbus.SystemBus() dummy = dbus.Interface(bus.get_object('org.bluez', '/'), 'org.freedesktop.DBus.Introspectable') #print dummy.Introspect() try: adapter = bluezutils.find_adapter() except: pass