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

72 lines
1.9 KiB
C#

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2025 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.Iot.Socket.Adapter
* 8A1D4D97-E419-4A49-B921-7FF76B190F45
*
* WenJY
*
* 2025-04-11 13:55:38
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using TouchSocket.Core;
namespace Sln.Iot.Socket.Adapter
{
public class BufferRequestInfo: IRequestInfo
{
/// <summary>
/// 帧头 0x68 1个字
/// </summary>
public byte[] header { get; internal set; }
/// <summary>
/// 采集设备编号,由采集器类型(1个字)、采集器地址(2个字)组成
/// </summary>
public string ColletEquipCode { get; internal set; }
/// <summary>
/// 自定义属性,DataType
/// </summary>
public byte DataType { get; internal set; }
/// <summary>
/// Buffer长度
/// </summary>
public int BufferLength { get; internal set; }
/// <summary>
/// 内容体
/// </summary>
public byte[] Body { get; internal set; }
/// <summary>
/// 校验位 1个字从帧头到数据累加CS校验
/// </summary>
public byte CheckBit { get; internal set; }
/// <summary>
/// 帧尾 0x16 1个字
/// </summary>
public byte[] Tail { get; internal set; }
/// <summary>
/// 原始Buffer
/// </summary>
public ByteBlock buffer { get; internal set; }
}
}