# Conflicts:
#	protos/device_state.proto
This commit is contained in:
xzb 2023-10-13 15:57:29 +08:00
commit b86f21606e
2 changed files with 122 additions and 97 deletions

View File

@ -54,9 +54,12 @@ message SwitchState{
message SignalState{
//
string id = 1;
//
repeated Signal.Light light = 2;
}
//
//
message Signal {
//
enum Aspect {
//
OFF = 0;
@ -64,17 +67,24 @@ message Signal {
ON = 1;
//绿
L = 2;
//
//
H = 3;
//
//
U = 4;
//
//
HU= 5;
//
//
B=6;
//
//
A=7;
}
//
message Light{
//()
Aspect color = 1;
//true-false-
bool display = 2;
}
}
//
@ -256,6 +266,8 @@ message AllDevicesStatus{
repeated SectionState sectionState = 3;
//
repeated ReplyState replyState = 4;
//
repeated SignalState signalState = 5;
}
//

View File

@ -12,6 +12,7 @@ message IBPGraphicStorage {
repeated IBPText IBPTexts = 6;
// UniqueIdType UniqueIdPrefix = 7;
repeated IbpRelatedDevice ibpRelatedDevices = 8;
repeated IbpLight ibpLights = 9;
}
message IBPButton {
@ -54,6 +55,18 @@ message IbpArrow {
repeated graphicData.Point points = 3;
}
message IbpLight {
enum IbpLightColor {
white = 0;
red = 1;
green = 2;
blue = 3;
}
graphicData.CommonInfo common = 1;
IbpLightColor color = 2;
string code = 3;
}
// message UniqueIdType {
// string city = 1; //
// string lineId = 2; //线