Return-Path: From: Andrzej Kaczmarek To: CC: Andrzej Kaczmarek Subject: [PATCH v2 11/17] heartrate: Read Heart Rate Control Point characteristics Date: Wed, 5 Sep 2012 15:05:42 +0200 Message-ID: <1346850348-21176-12-git-send-email-andrzej.kaczmarek@tieto.com> In-Reply-To: <1346850348-21176-1-git-send-email-andrzej.kaczmarek@tieto.com> References: <1346850348-21176-1-git-send-email-andrzej.kaczmarek@tieto.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-bluetooth-owner@vger.kernel.org List-ID: This patch reads and stores Heart Rate Control Point characteristics value. --- profiles/heartrate/heartrate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/heartrate/heartrate.c b/profiles/heartrate/heartrate.c index b73b357..03f0383 100644 --- a/profiles/heartrate/heartrate.c +++ b/profiles/heartrate/heartrate.c @@ -58,6 +58,7 @@ struct heartrate { GSList *chars; gboolean has_location; uint8_t location; + gboolean has_cp_reset; }; struct characteristic { @@ -420,6 +421,7 @@ static void process_heartrate_char(struct characteristic *ch) { if (g_strcmp0(ch->attr.uuid, HEART_RATE_CONTROL_POINT_UUID) == 0) { DBG("Heart Rate Control Point reset supported by client"); + ch->hr->has_cp_reset = TRUE; } else if (g_strcmp0(ch->attr.uuid, BODY_SENSOR_LOCATION_UUID) == 0) { DBG("Body Sensor Location supported by client"); gatt_read_char(ch->hr->attrib, ch->attr.value_handle, 0, -- 1.7.11.3