Esempio n. 1
0
        static void Main(string[] args)
        {
            EgtsProcessor egtsProcessor = new EgtsProcessor(new ToConsoleProcessor());

            try
            {
                byte[] rawData = File.ReadAllBytes("Probes\\fail.bin");
                //byte[] rawData = File.ReadAllBytes("Probes\\13.bin");
                rawData = egtsProcessor.ProcessData(rawData);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            };
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            EgtsProcessor egtsProcessor = new EgtsProcessor(new ToConsoleProcessor());

            for (int i = 1; i <= 9; i++)
            {
                byte[] rawData = File.ReadAllBytes(String.Format("Probes\\{0}-res.bin", i));

                rawData = egtsProcessor.ProcessData(rawData);

                File.WriteAllBytes("response.bin", rawData);

                Console.ReadKey();
            }
            Console.ReadKey();
        }