Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/flipperzero-protobuf.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Minaylov <nm29719@gmail.com>2022-04-06 21:13:19 +0300
committerGitHub <noreply@github.com>2022-04-06 21:13:19 +0300
commit0403ae1ba7a4501274da54b3aa6274f76fdd090c (patch)
tree737ddbae31530978f6b4dea53e606f32cfe0d11a
parentc3f9a638f5f27fd99133cd9886ed74114b47ca31 (diff)
[FL-2297] Power info command (#27)0.5
* Added power info command * PowerInfo key:value
-rw-r--r--Changelog4
-rw-r--r--flipper.proto2
-rw-r--r--system.options31
-rw-r--r--system.proto8
4 files changed, 30 insertions, 15 deletions
diff --git a/Changelog b/Changelog
index 9bb94ee..3248761 100644
--- a/Changelog
+++ b/Changelog
@@ -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;
+}