DBUS and Bluez problem

Mark S. Townsley mstownsley at gmail.com
Sat Mar 17 23:38:11 PDT 2007


Hi:  I am trying to use the Bluez-DBUS API in my Bluetooth device pin
exchange script.  I got a DBUS connection error when I execute this line:

   DBusConnection *conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err);

When I print out err.message, I got a bunch of non-printable character so I
could not quite figure out what the error is.
However, I took the same DBUS line and put in a stand-alone program and it
works fine.

In my /etc/dbus-1/system.d, there is bluetooh.conf which is identifcal to
the config that ships with Bluez.  I even explicitly include
bluetooth.confin my /etc/dbus-1/system.conf file.
I tried Bluez-Utils 3.7 and 3.9 and with the same results.

Is there any special trick/configuration to connect to DBUS system bus from
within Bluez Bluetooth stack?

thanks

--v
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20070317/8af4d80c/attachment.html


More information about the dbus mailing list