summaryrefslogtreecommitdiff
path: root/test/dbusdef.py
blob: 5af61535ba4d37477213760a4862545136c00a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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