Add admin commands for SCDXX CO2 sensors

This commit is contained in:
oscgonfer 2025-07-28 12:34:53 +02:00
parent fa02e14d8d
commit ee114d4e89

View file

@ -471,6 +471,11 @@ message AdminMessage {
* Tell the node to reset the nodedb.
*/
int32 nodedb_reset = 100;
/*
* SCDXX CO2 sensor configuration
*/
SCDXX_config scdxx_config = 102;
}
}
@ -575,3 +580,30 @@ message KeyVerificationAdmin {
*/
optional uint32 security_number = 4;
}
message SCDXX_config {
/*
* Set Automatic self-calibration enabled
*/
optional bool set_asc = 1;
/*
* Recalibration target CO2 concentration in ppm (FRC or ASC)
*/
optional uint32 target_co2_conc = 2;
/*
* Reference temperature in degC
*/
optional float temperature = 4;
/*
* Altitude of sensor in meters above sea level. 0 - 3000m (overrides ambient pressure)
*/
optional uint32 altitude = 5;
/*
* Sensor ambient pressure in Pa. 70000 - 120000 Pa (overrides altitude)
*/
optional uint32 ambient_pressure = 6;
}