Esempio n. 1
0
        public bool Scan()
        {
            sc.WriteSensor(ConfigParameters.SCAN_CMD);
            if (isConnect)
            {
                if (sc.ReadSensor())
                {
                    RoughtData = SensorOutputParser.ParseStream(sc.ReceivedData);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                System.Console.WriteLine("Sensor error: No connection available.\n");
                return(false);
            }

            return(true);
        }