kopia lustrzana https://github.com/meshtastic/protobufs
Porównaj commity
6 Commity
2a2968f158
...
a1deb183c4
Autor | SHA1 | Data |
---|---|---|
Andre K | a1deb183c4 | |
Thomas Göttgens | 68720ed8db | |
Thomas Göttgens | 4a77f8bc08 | |
Thomas Göttgens | 6a4da15a16 | |
Jonathan Bennett | 6ae27a2fbf | |
andrekir | c01e1dddfe |
|
@ -1,3 +1,6 @@
|
|||
# longest current is 45 chars, plan with a bit of buffer
|
||||
*DeviceConfig.tzdef max_size:65
|
||||
|
||||
*NetworkConfig.wifi_ssid max_size:33
|
||||
*NetworkConfig.wifi_psk max_size:65
|
||||
*NetworkConfig.ntp_server max_size:33
|
||||
|
|
|
@ -180,6 +180,11 @@ message Config {
|
|||
* Disables the triple-press of user button to enable or disable GPS
|
||||
*/
|
||||
bool disable_triple_click = 10;
|
||||
|
||||
/*
|
||||
* POSIX Timezone definition string from https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv.
|
||||
*/
|
||||
string tzdef = 11;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Ładowanie…
Reference in New Issue