mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-05 01:54:22 +08:00
17 lines
365 B
Python
17 lines
365 B
Python
import dbus
|
|
|
|
bus = dbus.SystemBus()
|
|
|
|
|
|
dummy = dbus.Interface(bus.get_object('org.bluez', '/'), 'org.freedesktop.DBus.Introspectable')
|
|
|
|
#print dummy.Introspect()
|
|
|
|
|
|
manager = dbus.Interface(bus.get_object('org.bluez', '/'), 'org.bluez.Manager')
|
|
|
|
try:
|
|
adapter = dbus.Interface(bus.get_object('org.bluez', manager.DefaultAdapter()), 'org.bluez.Adapter')
|
|
except:
|
|
pass
|