Hello Guys,
 
I'm trying to use the DBUS API to query a device for a service using the example python code from the WIKI documents:
 
import dbus
bus = dbus.SystemBus();
obj = bus.get_object('org.bluez', '/org/bluez/hci0')
adapter = dbus.Interface(obj, 'org.bluez.Adapter')
handles = adapter.GetRemoteServiceHandles('00:17:B0:A0:E7:09', '
opp')
for handle in handles
:
print adapter.GetRemoteServiceRecordAsXML('00:17:B0:A0:E7:09', handle)
 
However when running this code i get the following error message displayed:
 
  File "./test.py", line 13, in ?
    print adapter.GetRemoteServiceRecordAsXML('00:17:B0:A0:E7:09', handle)
  File "/var/lib/python-support/python2.4/dbus/proxies.py", line 169, in __call__
    reply_message = self._connection.send_message_with_reply_and_block(message, timeout)
dbus.DBusException: org.bluez.Error.UnknownMethod: Method "GetRemoteServiceRecordAsXML" with signature "su" on interface "org.bluez.Adapter" doesn't exist

Do you have any ideas what might be causing this?
 
Thanks guys,
 
Rob


Are you the Quizmaster? Play BrainBattle with a friend now!