Heart rate samples logged as protobuf measurements.
More...
Heart rate samples logged as protobuf measurements.
◆ protobuf_log_hr_add_sample()
| bool protobuf_log_hr_add_sample |
( |
ProtobufLogRef |
ref, |
|
|
time_t |
sample_utc, |
|
|
uint8_t |
bpm, |
|
|
uint8_t |
confidence, |
|
|
bool |
off_wrist |
|
) |
| |
Log a heart rate sample.
- Parameters
-
| ref | Session created with protobuf_log_hr_create(). |
| sample_utc | Sample UTC time. |
| bpm | Heart rate in beats per minute. |
| confidence | Algorithm confidence, 0-100. |
| off_wrist | The watch is off the wrist. |
- Returns
- true on success.
◆ protobuf_log_hr_create()
Create a measurement session of BPM and heart rate quality.
- Parameters
-
| transport | Transport, or NULL to log to data logging. |
- Returns
- Session, or NULL on error.
◆ protobuf_log_hr_quality()
| uint8_t protobuf_log_hr_quality |
( |
uint8_t |
confidence, |
|
|
bool |
off_wrist |
|
) |
| |
Heart rate quality as the phone expects it, from an algorithm confidence.
The 0-7 HeartRateQuality scale of the measurement logs, also used for the quality stored in minute records.
- Parameters
-
| confidence | Algorithm confidence, 0-100. |
| off_wrist | The watch is off the wrist. |
- Returns
- HeartRateQuality value.