From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Service Discovery Issues
Date: Wed, 27 Jun 2007 20:00:32 +0200 [thread overview]
Message-ID: <1182967232.9499.10.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <BAY102-W69DF635E82A29A17B512DF00A0@phx.gbl>
Hi Robert,
> 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?
try wrapping the handle with dbus.Uint32() to get the right type.
Regards
Marcel
-------------------------------------------------------------------------
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/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2007-06-27 18:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-27 16:31 [Bluez-users] Service Discovery Issues Robert Rawlins
2007-06-27 18:00 ` Marcel Holtmann [this message]
-- 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=1182967232.9499.10.camel@aeonflux.holtmann.net \
--to=marcel@holtmann.org \
--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