OSDN Git Service

thermometer: Always write CCC value when connecting
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Fri, 9 Nov 2012 08:55:52 +0000 (09:55 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 30 Nov 2012 13:03:14 +0000 (15:03 +0200)
commite289def741325b87881b4556bf600b77108bccba
tree5f49887d058d6d6bc4f18d44278342f937139626
parent20f7a7b1ca6e186c969ed18926de7faee2041f91
thermometer: Always write CCC value when connecting

This patch ensures that CCC values for Intermediate Temperature and
Termperature Measurement are always written when connecting to device.
This is to i.e. disable notifications and/or indications in case they
are already enabled (reconnection scenario) but we don't have watcher
registered so it's pointless for remote to send us data.
profiles/thermometer/thermometer.c