Skip to content

Commit 0ee90d8

Browse files
committed
Basic structure for telemetry db
1 parent bc63a57 commit 0ee90d8

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

meshtastic/admin.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,3 +701,13 @@ message SEN5X_config {
701701
*/
702702
optional bool set_one_shot_mode = 2;
703703
}
704+
705+
/*
706+
* Telemetry recovery command
707+
*/
708+
message Telemetry_Recovery {
709+
/*
710+
* Air quality telemetry recovery command
711+
*/
712+
bool air_quality_recovery = 1;
713+
}

meshtastic/telemetry.options

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
*HostMetrics.load5 int_size:16
1717
*HostMetrics.load15 int_size:16
1818
*HostMetrics.user_string max_size:200
19+
20+
*TelemetryDatabase.records max_count:10

meshtastic/telemetry.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,3 +851,28 @@ message SEN5XState {
851851
*/
852852
optional fixed64 voc_state_array = 6;
853853
}
854+
855+
/*
856+
* Database record wrapper for storing telemetry with metadata
857+
*/
858+
message TelemetryDatabaseRecord {
859+
/*
860+
* Telemetry data
861+
*/
862+
Telemetry telemetry = 1;
863+
864+
/*
865+
* Delivery status flags
866+
*/
867+
bool delivered = 2;
868+
}
869+
870+
/*
871+
* Telemetry database
872+
*/
873+
message TelemetryDatabase {
874+
/*
875+
* List of database records
876+
*/
877+
repeated TelemetryDatabaseRecord records = 1;
878+
}

0 commit comments

Comments
 (0)