Exemplo n.º 1
0
        public SessionSnapshot ReadData()
        {
            string commandString = commSet.St();

            bikeData = BikeDataHelper.AssignValues(commandString, 0);
            return(bikeData);
        }
Exemplo n.º 2
0
        public SessionSnapshot ReadData()
        {
            comPort.WriteLine("st");
            string stringData = comPort.ReadLine();

            Console.WriteLine(stringData);
            if (stringData.Contains("ERROR"))
            {
                return(null);
            }

            return(BikeDataHelper.AssignValues(stringData, 0));
        }