24 lines
882 B
Protocol Buffer
24 lines
882 B
Protocol Buffer
syntax = "proto3"
|
|
message Data {
|
|
// Unix timestamp - UTC - granularity milliseconds
|
|
optional int64 utc_timestamp = 1;
|
|
// Both latitude and longitude in decimal degrees
|
|
optional double latitude = 2;
|
|
optional double longitude = 3;
|
|
// Elevation from mean sea level in meters (m)
|
|
optional int32 elevation = 4;
|
|
// Heart rate in beats per minute (BPM)
|
|
optional uint32 heart_rate = 5;
|
|
// Speed in kilometers per hour (km/h)
|
|
optional uint32 speed = 6;
|
|
// Cadence in revolutions per minute (RPM)
|
|
optional uint32 cadence = 7;
|
|
// Temperature in celsius (°C)
|
|
optional uint32 temperature = 8;
|
|
// Power in watts (W)
|
|
optional uint32 power = 9;
|
|
// Inaccurate power estimate in watts (W)
|
|
optional uint32 power_estimate = 10;
|
|
// Respiration rate in breaths per minute (brpm)
|
|
optional uint32 respiration_rate = 11;
|
|
} |