You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
601 B

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