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.
49 lines
1.2 KiB
49 lines
1.2 KiB
using DotNetty.Codecs.Mqtt.Packets;
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Service.Charger.Msg.Host.Req
|
|
{
|
|
/// <summary>
|
|
/// 3.5.16 站控下发 VIN 鉴权的结果
|
|
/// </summary>
|
|
public class AuthenticationVIN:ASDU
|
|
{
|
|
/// <summary>
|
|
/// 记录类型
|
|
/// </summary>
|
|
[Property(0, 8)]
|
|
public byte RecordType { get; set; }
|
|
/// <summary>
|
|
/// VIN 鉴权结果 1:通过 2 不通过
|
|
/// </summary>
|
|
[Property(8, 8)]
|
|
public byte VINResult { get; set; }
|
|
|
|
/// <summary>
|
|
/// 站控下发 VIN 鉴权的结果
|
|
/// </summary>
|
|
/// <param name="vinresult">VIN 鉴权结果 1:通过 2 不通过</param>
|
|
public AuthenticationVIN(byte vinresult)
|
|
{
|
|
PackLen = 0;
|
|
CtlArea = 0;
|
|
SrcAddr = 0;
|
|
|
|
FrameTypeNo = 45;
|
|
MsgBodyCount = 1;
|
|
TransReason = 3;
|
|
PublicAddr = 4;
|
|
MsgBodyAddr = new byte[] { 0, 0, 0 };
|
|
|
|
RecordType = 51;
|
|
|
|
VINResult = vinresult;
|
|
}
|
|
}
|
|
}
|