Parent: a20e040fd5094c4eabe48f6112460d953fa4f7d0
Author: Arik Nemtsov <arik@wizery.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-04-03 13:02:02
Tree: 6f5fc05c0df0fd632bce247a060b85f015ca4699
proximity: immediate alert: implement immediate alert server The profile is implemented in immalert.[ch]. A GATT service is registered with a write callback on the immediate alert level attribute. This attribute is write-only and is maintained per remote device. When a remote device write a raises or lowers the alert level, an appropriate PropertyChanged signal is emitted. When the alert level of a device is non-zero, a callback is registered on its disconnection. When the callback is called, the alert level of the device is reset to zero and an appropriate signal is emitted.
Diffstat
| M | Makefile.am | | | 3 | ++- |
| A | proximity/immalert.c | | | 289 | ++++++++++++++++++++++++++++++++++++++++ |
| A | proximity/immalert.h | | | 26 | ++++++++++++++++++++++++++ |
| M | proximity/reporter.c | | | 42 | +++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 files changed, 320 insertions(+), 40 deletions(-)