-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.proto
More file actions
46 lines (40 loc) · 993 Bytes
/
system.proto
File metadata and controls
46 lines (40 loc) · 993 Bytes
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
syntax = "proto3";
package system;
message VersionResponse {
int32 firmware_version = 1;
// should always be "SmartCross" for now
string machine_type = 2;
// returns /etc/machine-id
string machine_id = 3;
string api_version = 4;
string ctl_version = 5;
}
message FirmwareUpgradeRequest {
string url = 1;
bytes sha256 = 2;
}
enum UpgradeState {
UPGRADE_NONE = 0;
UPGRADE_DOWNLOADING = 1;
UPGRADE_VERIFYING = 2;
UPGRADE_WAITING_FOR_REBOOT = 3;
UPGRADE_WAITING_FOR_COMMIT = 4;
}
message UpgradeStateValue {
UpgradeState value = 1;
// Total bytes to be processed in current state
uint64 progress_total = 2;
// Processed bytes in current state
uint64 progress_current = 3;
// Fail reason
optional string message = 4;
}
enum ModuleState {
MODULE_STATE_OK = 0;
MODULE_STATE_ERROR = 1;
}
message ModuleStateValue {
ModuleState bluetooth = 1;
ModuleState wifi = 2;
ModuleState airplay = 3;
}