using System; using HybirdFrameworkCore.Autofac.Attribute; namespace Service.Charger.Msg.Host.Req; /// /// 红绿灯命令 /// public class TrafficLightReq: ASDU { /// /// 红绿灯 0x00-红灯, 0x01-绿灯 /// [Property(0, 8 )] public byte TrafficLight { get;set;} public TrafficLightReq(byte trafficLight) { FrameTypeNo = 120; MsgBodyCount = 1; TransReason = 3; PublicAddr = 0; MsgBodyAddr = new byte[] { 0, 0, 0 }; TrafficLight = trafficLight; } }