From: Marcel Holtmann <marcel@holtmann.org>
To: David Stockwell <dstockwell@frequency-one.com>
Cc: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Problems with returning Default Adapter in C-Glib-DBus code
Date: Fri, 23 May 2008 01:17:13 +0200 [thread overview]
Message-ID: <D0DBF0CD-7285-47DF-ACD9-9F1F23A58BD2@holtmann.org> (raw)
In-Reply-To: <01d801c8bc5a$027798d0$6701a8c0@freqonedev>
Hi David,
> Since upgrading to 3.32 (and possibly before), I have been having a
> problem with calling the new, experimental DefaultAdapter method
> against the "/". When I do so, it properly returns the Adapter path
> "/hci0", but fails with the following error: Unregistered object at
> path '/hci0'.
>
> Prior to this, I used to call what was effectively the old
> DefaultAdapter using the "/org/bluez" path and returning the old
> string version of the Adapter path, receiving "/org/bluez/hci0".
>
> Output of my failing program is as follows (also, in
> DefaultAdapterOut.txt):
>
> after dbus_g_proxy_new_for_name (dMgrObj)
> bus: org.bluez
> path: /
> interface: org.bluez.Manager
> Failed to get DefaultAdapter: Unregistered object at path '/hci0'
> At the same time, I called dbus-send to see if this was some more
> fundamental failure, but calls against both paths are successful, as
> shown in the following (DefaultAdapter.txt):
>
> [dstockwell@freqonec001 ~]$ dbus-send --system --type=method_call --
> print-reply --dest=org.bluez /org/bluez
> org.bluez.Manager.DefaultAdapter
> method return sender=:1.12 -> dest=:1.22
> string "/org/bluez/hci0"
> [dstockwell@freqonec001 ~]$ dbus-send --system --type=method_call --
> print-reply --dest=org.bluez / org.bluez.Manager.DefaultAdapter
> method return sender=:1.12 -> dest=:1.23
> object path "/hci0"
you have to give an object path instead of a string when using "/
hci0". That is the big change :)
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2008-05-22 23:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 22:20 Problems with returning Default Adapter in C-Glib-DBus code David Stockwell
2008-05-22 23:17 ` Marcel Holtmann [this message]
2008-05-22 23:46 ` David Stockwell
2008-05-22 23:53 ` [Bluez-devel] " Marcel Holtmann
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=D0DBF0CD-7285-47DF-ACD9-9F1F23A58BD2@holtmann.org \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
--cc=dstockwell@frequency-one.com \
/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