blob: 97edf2cdb8bb49bf154e0b05cd031945ac33fd3a [file] [log] [blame]
Joakim Andersson029a66a2019-07-04 16:44:29 +02001/*
2 * Copyright (c) 2016 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
8#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
9
10/**
11 * @brief Heart Rate Service (HRS)
12 * @defgroup bt_gatt_hrs Heart Rate Service (HRS)
13 * @ingroup bluetooth
14 * @{
15 *
16 * [Experimental] Users should note that the APIs can change
17 * as a part of ongoing development.
18 */
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/** @brief Notify heart rate measurement.
25 *
26 * This will send a GATT notification to all current subscribers.
27 *
David B. Kinder73896c02019-10-28 16:27:57 -070028 * @param heartrate The heartrate measurement in beats per minute.
Joakim Andersson029a66a2019-07-04 16:44:29 +020029 *
30 * @return Zero in case of success and error code in case of error.
31 */
32int bt_gatt_hrs_notify(u16_t heartrate);
33
34#ifdef __cplusplus
35}
36#endif
37
38/**
39 * @}
40 */
41
42#endif /* ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_ */