Bluez D-Bus API problems

Bastien Nocera hadess at hadess.net
Mon Mar 12 17:41:43 PDT 2007


Hey Stuart,

On Tue, 2007-03-13 at 00:40 +0000, Stuart Langridge wrote:
> I've been playing with the Bluez D-Bus API, which unfortunately
> doesn't support introspection, and I'm running into problems. For
> example, when i try and use the RFCOMM interface, like so:
> 
> rfcomm = dbus.Interface(
>     bus.get_object('org.bluez', manager.DefaultAdapter()),
>     'org.bluez.RFCOMM')
> devname = rfcomm.Connect(addr, 'ftp')
> 
> as per James at http://blogs.gnome.org/view/jamesh/2006/10/19/0, I get
> 
> Exception dbus_bindings.DBusException: 'Method "Connect" with
> signature "ss" on interface "org.bluez.RFCOMM" doesn\'t exist' in
> 'dbus_bindings._GIL_safe_cmessage_function_handler' ignored

>From the dbus-api.txt:
RFCOMM hierarchy (experimental)

You need to start hcid with the "-x" option.

Cheers

-- 
Bastien Nocera <hadess at hadess.net> 



More information about the dbus mailing list