You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/nrf-bm/libraries/bluetooth/services/ble_hrs_client.rst
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,16 @@ The HRS Client retrieves information such as the sensor location from a device t
17
17
Configuration
18
18
*************
19
19
20
-
Set the :kconfig:option:`CONFIG_BLE_HRS_CENTRAL` Kconfig option to enable the service.
20
+
Set the :kconfig:option:`CONFIG_BLE_HRS_CLIENT` Kconfig option to enable the service.
21
21
22
-
Set the maximum number of RR intervals for each HRM notification using the :kconfig:option:`CONFIG_BLE_HRS_CENTRAL_RR_INTERVALS_MAX_COUNT` Kconfig option.
22
+
Set the maximum number of RR intervals for each HRM notification using the :kconfig:option:`CONFIG_BLE_HRS_CLIENT_RR_INTERVALS_MAX_COUNT` Kconfig option.
23
23
24
24
Initialization
25
25
==============
26
26
27
-
The service instance is declared using the :c:macro:`BLE_HRS_CENTRAL_DEF` macro, specifying the name of the instance.
28
-
To initialize the service, call the :c:func:`ble_hrs_central_init` function.
29
-
See the :c:struct:`ble_hrs_central_config` structure for configuration details, in addition to the HRS specification.
27
+
The service instance is declared using the :c:macro:`BLE_HRS_CLIENT_DEF` macro, specifying the name of the instance.
28
+
To initialize the service, call the :c:func:`ble_hrs_client_init` function.
29
+
See the :c:struct:`ble_hrs_client_config` structure for configuration details, in addition to the HRS specification.
30
30
31
31
Usage
32
32
*****
@@ -35,10 +35,10 @@ Applications can use the :ref:`lib_ble_scan` library for detecting advertising d
35
35
36
36
Upon connection, the application can use the :ref:`lib_ble_db_discovery` library to discover the peer's database.
37
37
Call the :c:func:`ble_hrs_on_db_disc_evt` function on callback events from the Database Discovery library.
38
-
This function sends the :c:enumerator:`BLE_HRS_CENTRAL_EVT_DISCOVERY_COMPLETE` event to the application if the Heart Rate Service is discovered in the peer's database.
39
-
The application must call the :c:func:`ble_hrs_central_handles_assign` function to associate the link with the HRS Client instance.
38
+
This function sends the :c:enumerator:`BLE_HRS_CLIENT_EVT_DISCOVERY_COMPLETE` event to the application if the Heart Rate Service is discovered in the peer's database.
39
+
The application must call the :c:func:`ble_hrs_client_handles_assign` function to associate the link with the HRS Client instance.
40
40
41
-
Upon Heart Rate Service discovery, the application can call the :c:func:`ble_hrs_central_hrm_notif_enable` function to request the peer to start sending Heart Rate Measurement notifications.
41
+
Upon Heart Rate Service discovery, the application can call the :c:func:`ble_hrs_client_hrm_notif_enable` function to request the peer to start sending Heart Rate Measurement notifications.
42
42
43
43
Dependencies
44
44
************
@@ -54,7 +54,7 @@ The library is expected to be used with the :ref:`lib_ble_scan` |BMshort| librar
0 commit comments