Beispiel #1
0
        public byte[] Execute(SerialPortsUtils.Agents.Models.CustomActionContext context)
        {
            var data1 = context.IO.SendAndRead(InstructionSet.GetEmergencyStartInfo).PacketData(1).ToArray();//返回燃气紧急启动信息
            var data2 = context.IO.SendAndRead(InstructionSet.GetMaintainInfo).PacketData(1).ToArray();
            var model = new Models.Feedback.AdditionalInfo();

            model.EmergencyStatsPerformed = data1[2];
            model.MaintainTime            = ValueConvert.MaintainTimeFrom(data2[3], data2[4]);
            context.Job.Content.Context   = model;
            return(null);
        }