diff options
author | Nikolay Minaylov <nm29719@gmail.com> | 2022-04-06 21:13:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 21:13:19 +0300 |
commit | 0403ae1ba7a4501274da54b3aa6274f76fdd090c (patch) | |
tree | 737ddbae31530978f6b4dea53e606f32cfe0d11a | |
parent | c3f9a638f5f27fd99133cd9886ed74114b47ca31 (diff) |
[FL-2297] Power info command (#27)0.5
* Added power info command
* PowerInfo key:value
-rw-r--r-- | Changelog | 4 | ||||
-rw-r--r-- | flipper.proto | 2 | ||||
-rw-r--r-- | system.options | 31 | ||||
-rw-r--r-- | system.proto | 8 |
4 files changed, 30 insertions, 15 deletions
@@ -1,5 +1,9 @@ # Changelog +## [0.5] +### Added +- System message: PowerInfo + ## [0.4] ### Added - System message: UpdateRequest diff --git a/flipper.proto b/flipper.proto index 2d05be7..72bf07b 100644 --- a/flipper.proto +++ b/flipper.proto @@ -69,6 +69,8 @@ message Main { .PB_System.ProtobufVersionRequest system_protobuf_version_request = 39; .PB_System.ProtobufVersionResponse system_protobuf_version_response = 40; .PB_System.UpdateRequest system_update_request = 41; + .PB_System.PowerInfoRequest system_power_info_request = 44; + .PB_System.PowerInfoResponse system_power_info_response = 45; .PB_Storage.InfoRequest storage_info_request = 28; .PB_Storage.InfoResponse storage_info_response = 29; .PB_Storage.StatRequest storage_stat_request = 24; diff --git a/system.options b/system.options index e7b7187..d74cb2b 100644 --- a/system.options +++ b/system.options @@ -1,15 +1,16 @@ -PB_System.PingRequest.data type:FT_POINTER -PB_System.PingRequest.data max_size:1024 -PB_System.PingResponse.data type:FT_POINTER -PB_System.PingResponse.data max_size:1024 -PB_System.DeviceInfoResponse.key type:FT_POINTER -PB_System.DeviceInfoResponse.value type:FT_POINTER -PB_System.DateTime.hour int_size:IS_8 -PB_System.DateTime.minute int_size:IS_8 -PB_System.DateTime.second int_size:IS_8 -PB_System.DateTime.day int_size:IS_8 -PB_System.DateTime.month int_size:IS_8 -PB_System.DateTime.year int_size:IS_16 -PB_System.DateTime.weekday int_size:IS_8 -PB_System.UpdateRequest.update_folder type:FT_POINTER - +PB_System.PingRequest.data type:FT_POINTER +PB_System.PingRequest.data max_size:1024 +PB_System.PingResponse.data type:FT_POINTER +PB_System.PingResponse.data max_size:1024 +PB_System.DeviceInfoResponse.key type:FT_POINTER +PB_System.DeviceInfoResponse.value type:FT_POINTER +PB_System.DateTime.hour int_size:IS_8 +PB_System.DateTime.minute int_size:IS_8 +PB_System.DateTime.second int_size:IS_8 +PB_System.DateTime.day int_size:IS_8 +PB_System.DateTime.month int_size:IS_8 +PB_System.DateTime.year int_size:IS_16 +PB_System.DateTime.weekday int_size:IS_8 +PB_System.UpdateRequest.update_folder type:FT_POINTER +PB_System.PowerInfoResponse.key type:FT_POINTER +PB_System.PowerInfoResponse.value type:FT_POINTER diff --git a/system.proto b/system.proto index 43914fe..25d2197 100644 --- a/system.proto +++ b/system.proto @@ -67,3 +67,11 @@ message ProtobufVersionResponse { message UpdateRequest { string update_folder = 1; } + +message PowerInfoRequest { +} + +message PowerInfoResponse { + string key = 1; + string value = 2; +} |