using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DotNettyFrom.config
{
    public class DtuConfig
    {
        public static string DefaultDtuNo = "000000000001";

        public static int DefaulDtutPort = 15440;

        //功能码的位置,长度
        public static int FunctionCodeStartPos = 9;

        public static int FunctionCodeLength = 1;


        //心跳指令的功能码,用来判定是否是心跳
        public static int HeartbeatDownCmdCode = 4;


        public static int LengthFieldOffset = 10;
        public static int LengthFieldLength = 2;
        public static int LengthAdjustment = 1;
        public static int InitialBytesToStrip = 0;

        public static int MeasurePointLen = 1;
        public static int MessageFlowLen = 2;
    }
}