Joakim Andersson | 029a66a | 2019-07-04 16:44:29 +0200 | [diff] [blame] | 1 | /* |
| 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 |
| 21 | extern "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. Kinder | 73896c0 | 2019-10-28 16:27:57 -0700 | [diff] [blame^] | 28 | * @param heartrate The heartrate measurement in beats per minute. |
Joakim Andersson | 029a66a | 2019-07-04 16:44:29 +0200 | [diff] [blame] | 29 | * |
| 30 | * @return Zero in case of success and error code in case of error. |
| 31 | */ |
| 32 | int 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_ */ |