This is an example Heart Rate Service created using a C-like approach. Rather than creating the service as a class and then using an instance of it, the service is entirely done with simple functions and variables.

Fork of nRF5-DK-HeartRateDemo by Bill Siever

Committer:
bsiever
Date:
Mon Nov 14 20:05:44 2016 +0000
Revision:
4:6b6018da25f6
Parent:
0:3a7b472313d7
Initial Release;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bsiever 0:3a7b472313d7 1 This example creates:
bsiever 0:3a7b472313d7 2 * A Heart Rate Service
bsiever 0:3a7b472313d7 3 * A Device Information Service
bsiever 0:3a7b472313d7 4
bsiever 0:3a7b472313d7 5 Interrupt-based buttons are used to control the Heart Rate Service's Heart Rate value.
bsiever 0:3a7b472313d7 6 * Button 1 on the Developer Board increases the heart rate
bsiever 0:3a7b472313d7 7 * Button 2 on the Developer Board decreases the heart rate
bsiever 0:3a7b472313d7 8