Andre K 2024-04-08 14:26:33 +02:00 zatwierdzone przez GitHub
commit a1deb183c4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 54 dodań i 3 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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
*/
@ -56,16 +101,21 @@ message EnvironmentMetrics {
* Gas resistance in MOhm measured
*/
float gas_resistance = 4;
}
/*
* Power metrics
*/
message PowerMetric {
/*
* Voltage measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x)
*/
float voltage = 5;
float voltage = 1;
/*
* Current measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x)
*/
float current = 6;
float current = 2;
}
/*