PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
Heart rate log

Heart rate samples logged as protobuf measurements. More...

Functions

ProtobufLogRef protobuf_log_hr_create (ProtobufLogTransportCB transport)
 Create a measurement session of BPM and heart rate 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.
 
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.
 

Detailed Description

Heart rate samples logged as protobuf measurements.

Function Documentation

◆ 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
refSession created with protobuf_log_hr_create().
sample_utcSample UTC time.
bpmHeart rate in beats per minute.
confidenceAlgorithm confidence, 0-100.
off_wristThe watch is off the wrist.
Returns
true on success.

◆ protobuf_log_hr_create()

ProtobufLogRef protobuf_log_hr_create ( ProtobufLogTransportCB  transport)

Create a measurement session of BPM and heart rate quality.

Parameters
transportTransport, 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
confidenceAlgorithm confidence, 0-100.
off_wristThe watch is off the wrist.
Returns
HeartRateQuality value.