diff --git a/admin.proto b/admin.proto index 4493f53..172ec3a 100644 --- a/admin.proto +++ b/admin.proto @@ -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; } } diff --git a/device_metadata.proto b/device_metadata.proto new file mode 100644 index 0000000..4ec35a5 --- /dev/null +++ b/device_metadata.proto @@ -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; +} \ No newline at end of file