Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion meshtastic/telemetry.options
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# options for nanopb
# https://jpa.kapsi.fi/nanopb/docs/reference.html#proto-file-options


*EnvironmentMetrics.weather max_count:8
*EnvironmentMetrics.power max_count:8
54 changes: 52 additions & 2 deletions meshtastic/telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,51 @@ message DeviceMetrics {
* Weather station or other environmental metrics
*/
message EnvironmentMetrics {
/*
* Temperature measured
*/
float temperature = 1 [deprecated = true];

/*
* Relative humidity percent measured
*/
float relative_humidity = 2 [deprecated = true];

/*
* Barometric pressure in hPA measured
*/
float barometric_pressure = 3 [deprecated = true];

/*
* Gas resistance in MOhm measured
*/
float gas_resistance = 4 [deprecated = true];

/*
* Voltage measured
*/
float voltage = 5 [deprecated = true];

/*
* Current measured
*/
float current = 6 [deprecated = true];

/*
* WeatherMetric readings
*/
repeated WeatherMetric weather = 7;

/*
* PowerMetric readings
*/
repeated PowerMetric power = 8;
}

/*
* Weather metrics
*/
message WeatherMetric {
/*
* Temperature measured
*/
Expand All @@ -56,16 +101,21 @@ message EnvironmentMetrics {
* Gas resistance in MOhm measured
*/
float gas_resistance = 4;
}

/*
* Power metrics
*/
message PowerMetric {
/*
* Voltage measured
*/
float voltage = 5;
float voltage = 1;

/*
* Current measured
*/
float current = 6;
float current = 2;
}

/*
Expand Down