OSDN Git Service

core/gatt-client: fix losing notifications
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 18 Sep 2015 08:35:57 +0000 (01:35 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 19 Sep 2015 11:28:12 +0000 (14:28 +0300)
commit344df6b958f7a3ce1faf8f5fde8ad6a2f5fd5ce6
treebfa2a19d2da0b1859da743bc021d6a19ea13a6a2
parenta3ff1a8e43688311037eb1c46981f3a7aecfa24e
core/gatt-client: fix losing notifications

When notifications are quickly send to BlueZ, it tries to signal that
through dbus using g_dbus_emit_property_changed, which would merge all
changes and schedule sending property changed in g_iddle_add.

If the stream of notifications from device is fast enough, there might be
no iddle moment to send properties changed before next notification
arives, which would result in notifications being lost.

This patch fixes that by using method that sends properties changed
immediately, without waiting for iddle moment.
src/gatt-client.c