Merge pull request #187 from meshtastic/device-metadata

Device metadata admin message
This commit is contained in:
Ben Meadors 2022-08-07 18:55:47 -05:00 committed by GitHub
commit 87bb8481eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View file

@ -268,5 +268,10 @@ message AdminMessage {
* Tell the node to shutdown in this many seconds (or <0 to cancel shutdown)
*/
int32 shutdown_seconds = 51;
/*
* Request the node to send device metadata (firmware, protobuf version, etc)
*/
uint32 get_device_metadata_request = 52;
}
}

22
device_metadata.proto Normal file
View file

@ -0,0 +1,22 @@
syntax = "proto3";
option java_package = "com.geeksville.mesh";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";
option java_outer_classname = "DeviceMetadataProtos";
/*
* Device metadata response
*/
message DeviceMetadata {
/*
* Device firmware version string
*/
string firmware_version = 1;
/*
* Device state version
*/
uint32 device_state_version = 2;
}