Example #1
0
 public static EM406aGPS Start(string portName, int baudRate = 4800, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One)
 {
     EM406aGPS gps = new EM406aGPS(portName, baudRate, parity, dataBits, stopBits);
     gps._thread = new Thread(gps.Run);
     gps._thread.Start();
     return gps;
 }
Example #2
0
        public static EM406aGPS Start(string portName, int baudRate = 4800, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One)
        {
            EM406aGPS gps = new EM406aGPS(portName, baudRate, parity, dataBits, stopBits);

            gps._thread = new Thread(gps.Run);
            gps._thread.Start();
            return(gps);
        }