bluez/test/dbusdef.py
Mikel Astiz 90e7850d95 test: Avoid using DefaultAdapter()
Call the utility library -which uses ObjectManager API- to avoid using
Manager.FindAdapter() and Manager.DefaultAdapter().
2012-12-05 16:39:34 +02:00

16 lines
237 B
Python

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