【增加按钮、指示灯、警铃状态】
This commit is contained in:
parent
7a105e7c0e
commit
d1b6798d30
@ -233,6 +233,25 @@ message ReplyState {
|
||||
bool xh = 2;
|
||||
}
|
||||
|
||||
// 按钮状态
|
||||
message ButtonState {
|
||||
string id = 1;
|
||||
bool down = 2;
|
||||
}
|
||||
|
||||
// 警铃状态
|
||||
message AlarmState {
|
||||
string id = 1;
|
||||
bool active = 2;
|
||||
}
|
||||
|
||||
// 灯状态
|
||||
message LightState {
|
||||
string id = 1;
|
||||
Signal.Aspect aspect = 2;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//仿真运行时状态变化量,当前时刻与上一时刻比较得到
|
||||
@ -261,6 +280,12 @@ message AllDevicesStatus{
|
||||
repeated ReplyState replyState = 4;
|
||||
// 所有信号机状态
|
||||
repeated SignalState signalState = 5;
|
||||
// 按钮状态
|
||||
repeated ButtonState buttonState = 6;
|
||||
// 警铃状态
|
||||
repeated AlarmState AlarmState = 7;
|
||||
// 灯状态
|
||||
repeated LightState LightState = 8;
|
||||
}
|
||||
|
||||
//服务器端向前端推送的设备状态信息
|
||||
|
Loading…
Reference in New Issue
Block a user