Reworked protocol to fit new simplified approch (first rough concept)

This commit is contained in:
2017-12-12 17:44:30 +01:00
parent e7353e7c67
commit fe9a6d440c
6 changed files with 95 additions and 89 deletions

View File

@@ -2,29 +2,9 @@ syntax = "proto3";
package ledd;
import "hsv.proto";
import "hcl.proto";
message LED {
string name = 1;
int32 id = 2;
int32 remote_id = 3;
int32 client_unique = 4;
HSV color = 5;
map<string, string> options = 10;
}
message LEDGroup {
enum GroupType {
RGB = 0;
USER = 1;
}
string name = 1;
int32 id = 2;
GroupType type = 3;
int32 size = 4;
HSV color = 5;
repeated int32 led_ids = 10;
HCL color = 2;
}