forked from flipperdevices/flipperzero-protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system.proto
66 lines (51 loc) · 1.15 KB
/
system.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
syntax = "proto3";
package PB_System;
option java_package = "com.flipperdevices.protobuf.system";
message PingRequest {
bytes data = 1;
}
message PingResponse {
bytes data = 1;
}
message RebootRequest {
enum RebootMode {
OS = 0; // default value
DFU = 1;
}
RebootMode mode = 1;
}
message DeviceInfoRequest {
}
message DeviceInfoResponse {
string key = 1;
string value = 2;
}
message FactoryResetRequest {
}
message GetDateTimeRequest {
}
message GetDateTimeResponse {
DateTime datetime = 1;
}
message SetDateTimeRequest {
DateTime datetime = 1;
}
message DateTime {
// Time
uint32 hour = 1; /**< Hour in 24H format: 0-23 */
uint32 minute = 2; /**< Minute: 0-59 */
uint32 second = 3; /**< Second: 0-59 */
// Date
uint32 day = 4; /**< Current day: 1-31 */
uint32 month = 5; /**< Current month: 1-12 */
uint32 year = 6; /**< Current year: 2000-2099 */
uint32 weekday = 7; /**< Current weekday: 1-7 */
}
message PlayAudiovisualAlertRequest {
}
message ProtobufVersionRequest {
}
message ProtobufVersionResponse {
uint32 major = 1;
uint32 minor = 2;
}