public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Rawlins <robert_rawlins@hotmail.com>
To: <bluez-users@lists.sourceforge.net>
Subject: [Bluez-users] Service Discovery Issues
Date: Wed, 27 Jun 2007 16:31:57 +0000	[thread overview]
Message-ID: <BAY102-W69DF635E82A29A17B512DF00A0@phx.gbl> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1237 bytes --]

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
_________________________________________________________________
Try Live.com - your fast, personalised homepage with all the things you care about in one place.
http://www.live.com/?mkt=en-gb  

[-- Attachment #1.2: Type: text/html, Size: 1645 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2007-06-27 16:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 16:31 Robert Rawlins [this message]
2007-06-27 18:00 ` [Bluez-users] Service Discovery Issues Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2007-06-27 18:26 Robert Rawlins
2007-06-28 15:00 ` Marcel Holtmann
2007-06-28 16:26 Robert Rawlins
2007-06-28 16:32 ` Marcel Holtmann
2007-06-28 16:47 Robert Rawlins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY102-W69DF635E82A29A17B512DF00A0@phx.gbl \
    --to=robert_rawlins@hotmail.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox