Bluez 5.33 D-Bus error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Im writing a connection library in C++ for a Bluetooth low energy
device using the D-Bus interface. I'm able to connect and receive
messages from the device, but after some time (usually a few minutes)
the device disconnects and I find this in the syslog:

aug 25 15:14:30 arch.laptop gnome-session[706]:
ERROR:dbus.connection:Exception in handler for D-Bus signal:
aug 25 15:14:30 arch.laptop gnome-session[706]: Traceback (most recent
call last):
aug 25 15:14:30 arch.laptop gnome-session[706]: File
"/usr/lib/python3.4/site-packages/dbus/connection.py", line 230, in
maybe_handle_message
aug 25 15:14:30 arch.laptop gnome-session[706]: self._handler(*args, **kwargs)
aug 25 15:14:30 arch.laptop gnome-session[706]: File
"/usr/lib/python3.4/site-packages/blueman/bluez/PropertiesBlueZInterface.py",
line 55, in wrapper
aug 25 15:14:30 arch.laptop gnome-session[706]: handler(name, value, **kwargs)
aug 25 15:14:30 arch.laptop gnome-session[706]: File
"/usr/lib/python3.4/site-packages/blueman/plugins/applet/GameControllerWakelock.py",
line 34, in on_device_property_change
aug 25 15:14:30 arch.laptop gnome-session[706]: klass =
Device(path).get_properties()["Class"] & 0x1fff
aug 25 15:14:30 arch.laptop gnome-session[706]: KeyError: 'Class'

Looking in the documentation for bluez, Class should be an optional
property. Also, the location of the error indicates that the it
identifies the device as a game controller
(GameControllerWakelock.py), but it is not.

Any idea what could be wrong?
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux