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); }
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; }