Skip to content
Draft
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
49 changes: 49 additions & 0 deletions meshtastic/admin.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
syntax = "proto3";

package meshtastic;
Expand Down Expand Up @@ -471,6 +471,11 @@
* Tell the node to reset the nodedb.
*/
int32 nodedb_reset = 100;

/*
* Parameters and sensor configuration
*/
SensorConfig sensor_config = 102;
}
}

Expand Down Expand Up @@ -575,3 +580,47 @@
*/
optional uint32 security_number = 4;
}

message SensorConfig {
/*
* SCD4X CO2 Sensor configuration
*/
SCD4X_config scd4x_config = 1;
}

message SCD4X_config {
/*
* Set Automatic self-calibration enabled
*/
optional bool set_asc = 1;

/*
* Recalibration target CO2 concentration in ppm (FRC or ASC)
*/
optional uint32 set_target_co2_conc = 2;

/*
* Reference temperature in degC
*/
optional float set_temperature = 3;

/*
* Altitude of sensor in meters above sea level. 0 - 3000m (overrides ambient pressure)
*/
optional uint32 set_altitude = 4;

/*
* Sensor ambient pressure in Pa. 70000 - 120000 Pa (overrides altitude)
*/
optional uint32 set_ambient_pressure = 5;

/*
* Perform a factory reset of the sensor
*/
optional bool factory_reset = 6;

/*
* Power mode for sensor (true for low power, false for normal)
*/
optional bool set_power_mode = 7;
}
Loading