Added protobuf service

This commit is contained in:
2017-04-14 20:19:18 +02:00
parent 239c659027
commit 3c1c420747
3 changed files with 30 additions and 64 deletions

View File

@@ -7,8 +7,9 @@ import "hsv.proto";
message LED {
string name = 1;
int32 id = 2;
int32 local_id = 3;
int32 client_id = 4;
int32 remote_id = 3;
int32 client_unique = 4;
HSV color = 5;
map<string, string> options = 10;
}
@@ -23,29 +24,7 @@ message LEDGroup {
int32 id = 2;
GroupType type = 3;
int32 size = 4;
HSV color = 5;
repeated int32 led_ids = 10;
}
message LEDs {
repeated LED leds = 1;
}
message LEDGroups {
repeated LEDGroup led_groups = 1;
}
message LEDPercentage {
int32 led = 1;
float percentage = 2;
}
message LEDGroupColor {
int32 group = 1;
HSV color = 2;
}
message LEDGroupPercentage {
int32 group = 1;
float perc = 2;
}