Readings and samples
Learn how every protocol decodes into one Sample shape.
Every session hands back readings as Sample values, whichever watch sent them. Your code never branches on brand.
Sample
A Sample covers [start, end) in absolute time, as Unix seconds, and carries one measurement. The session places
the watch's local times with the UTC offset from the sync settings.
Measurements
| Measurement | Value |
|---|---|
StepCount | Steps in the interval |
HeartRate | Beats per minute |
Sleep | A sleep stage: awake, light, deep or REM |
OxygenSaturation | SpO2 percent |
SkinTemperature | Tenths of a degree Celsius |
BloodPressure | Systolic and diastolic, in mmHg |
A spot reading, such as a single SpO2 check, is a sample whose start and end are the same instant.
Stub
A full field-by-field reference for each language is still to be written.