Skip to content

Commit 230d343

Browse files
committed
Make a multi-measurement wildcard measurement
1 parent c42d097 commit 230d343

2 files changed

Lines changed: 12 additions & 37 deletions

File tree

meshtastic/telemetry.options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*EnvironmentMetrics.iaq int_size:16
55
*EnvironmentMetrics.wind_direction int_size:16
66
*EnvironmentMetrics.soil_moisture int_size:8
7-
*EnvironmentMetrics.one_wire_temperature max_count:8
7+
*WildCardMeasurement.measurement max_count:8
88

99
*LocalStats.num_online_nodes int_size:16
1010
*LocalStats.num_total_nodes int_size:16

meshtastic/telemetry.proto

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -155,49 +155,24 @@ message EnvironmentMetrics {
155155
optional float soil_temperature = 22;
156156

157157
/*
158-
* ADC Voltage (Ch1)
158+
* Wild-card multi-measurement (up to 8 channels)
159159
*/
160-
optional float adc_voltage_ch1 = 23;
161-
162-
/*
163-
* ADC Voltage (Ch2)
164-
*/
165-
optional float adc_voltage_ch2 = 24;
166-
167-
/*
168-
* ADC Voltage (Ch3)
169-
*/
170-
optional float adc_voltage_ch3 = 25;
171-
172-
/*
173-
* ADC Voltage (Ch4)
174-
*/
175-
optional float adc_voltage_ch4 = 26;
176-
177-
/*
178-
* ADC Voltage (Ch5)
179-
*/
180-
optional float adc_voltage_ch5 = 27;
181-
182-
/*
183-
* ADC Voltage (Ch6)
184-
*/
185-
optional float adc_voltage_ch6 = 28;
186-
187-
/*
188-
* ADC Voltage (Ch7)
189-
*/
190-
optional float adc_voltage_ch7 = 29;
160+
optional WildCardMeasurement multi_measurement = 23;
161+
}
191162

163+
/*
164+
* Wild-card measurement (up to 8 channels)
165+
*/
166+
message WildCardMeasurement {
192167
/*
193-
* ADC Voltage (Ch8)
168+
* 8 Channel multi-measurement
194169
*/
195-
optional float adc_voltage_ch8 = 30;
170+
repeated float measurement = 1;
196171

197172
/*
198-
* One-wire temperature (*C)
173+
* Sensor type
199174
*/
200-
repeated float one_wire_temperature = 31;
175+
TelemetrySensorType sensor_type = 2;
201176
}
202177

203178
/*

0 commit comments

Comments
 (0)