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.

37 lines
916 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BatCharging.Model;
namespace BatCharging.Service
{
/// <summary>
/// 充电机响应尖峰平谷设置
/// </summary>
public class MsgPeakResDecoder
{
/// <summary>
/// 解包充电机响应尖峰平谷设置的字节列表
/// </summary>
/// <param name="msgRecv">接收到字节数组:00:成功 01:失败</param>
/// <returns>充电机响应尖峰平谷设置</returns>
public byte GetPeakTimePeriodResMsg(byte[] msgRecv)
{
byte result = 9;
if (msgRecv != null)
{
int num = msgRecv.Length;
if (num >= 26)
{
result = msgRecv[25];
}
}
return result;
}
}
}