From d1b6798d300afbcdc7c03f0626ac88d485053245 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Tue, 17 Oct 2023 15:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E3=80=81=E6=8C=87=E7=A4=BA=E7=81=AF=E3=80=81=E8=AD=A6=E9=93=83?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/protos/device_state.proto b/protos/device_state.proto index 68f726f..9d0d3fa 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -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; } //服务器端向前端推送的设备状态信息