From a9c88ef5e4ef1284e3efe47f7f8a17819fa8db0a Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 7 Aug 2022 18:39:54 -0500 Subject: [PATCH] Device metadata admin message --- admin.proto | 11 +++++++++++ device_metadata.proto | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 device_metadata.proto diff --git a/admin.proto b/admin.proto index bc3c0df..9da6e02 100644 --- a/admin.proto +++ b/admin.proto @@ -8,6 +8,7 @@ import "channel.proto"; import "config.proto"; import "mesh.proto"; import "module_config.proto"; +import "device_metadata.proto"; option java_outer_classname = "AdminProtos"; @@ -263,5 +264,15 @@ 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; + + /* + * Device metadata response + */ + DeviceMetadata get_device_metadata_response = 53; } } diff --git a/device_metadata.proto b/device_metadata.proto new file mode 100644 index 0000000..2ab2091 --- /dev/null +++ b/device_metadata.proto @@ -0,0 +1,14 @@ +/* + * Device metadata response + */ + message DeviceMetadata { + /* + * Device firmware version string + */ + string firmware_version = 0; + + /* + * Device state version + */ + uint32 device_state_version = 1; +} \ No newline at end of file