Commit: a20e040fd5094c4eabe48f6112460d953fa4f7d0
Parent: dd4d0d6b653627d86319dcdf1c1efb5a46fa628c
Author: Arik Nemtsov <arik@wizery.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-04-03 13:01:07
Tree: 707406bd12bc85ffd66267231b06371b4b3c8657

proximity: link loss: implement link loss server The profile is implemented in linkloss.[ch]. A GATT service is registered with read/write callbacks on the link-loss alert level attribute. The alert level is maintained per device. It is returned on read and updated on write. When the alert level is non-zero, a callback is registered on the disconnection of the remote device. If a device with non-zero alert state is disconnected, an appropriate PropertyChanged signal is emitted with the alert level previously set by the device. We avoid emitting a signal when the disconnection was requested by us.

Diffstat

M Makefile.am | 3 ++-
A proximity/linkloss.c | 337 ++++++++++++++++++++++++++++++++++++++++
A proximity/linkloss.h | 26 ++++++++++++++++++++++++++
M proximity/reporter.c | 42 +++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

4 files changed, 368 insertions(+), 40 deletions(-)

View Full Diff | Patch