Пример #1
0
        public static string GenerateString(Dutyara dut, int iter)
        {
            string rtn = "id-" + (iter + 1) + ":3:" + dut.Id + ",fuel:2:" + FormatFluid(dut.msg_cont.fuel)
                         + ",water:2:" + FormatFluid(dut.msg_cont.water) + ",temp:2:" + FormatTemp(dut.msg_cont.temp) + ",";

            return(rtn);
        }
Пример #2
0
 static void Main(string[] args)
 {
     // TopWindowSet.setTop();
     Dutyara.GetPorts();
     dut_list.Add(new Dutyara(33722, 9600));
     dut_list.Add(new Dutyara(22733, 9600));
     DutControl();
     //while (true)
     {
         Console.WriteLine(Console.ReadLine());
     }
     Console.ReadKey();
 }