示例#1
0
        internal DataPacket GetThresholdPacket(string polId, string eno, string v1, string v2)
        {
            DataPacket dp = new DataPacket(SentCommand.GetAlertThreshold);

            dp.Settings = Settings.Instance;

            string sno      = Settings.Instance.Sno;
            string dateTime = DeviceTime.Convert(DateTime.Now);

            dp.St = Value.SysSend;
            dp.SetThresholdContent(sno, eno, polId, v1, v2);
            dp.Build();
            return(dp);
        }
示例#2
0
        internal DataPacket GetThresholdPacket(string polId, string eno, string v1, string v2)
        {
            DataPacket dp = new DataPacket(SentCommand.GetAlertThreshold);
            dp.Settings = Settings.Instance;

            string sno = Settings.Instance.Sno;
            string dateTime = DeviceTime.Convert(DateTime.Now);
            dp.St = Value.SysSend;
            dp.SetThresholdContent(sno, eno, polId, v1, v2);
            dp.Build();
            return dp;
        }