Beispiel #1
0
        static void Main(string[] args)
        {
            Log.Info("Application is running.");
            _listenerServer = new ListenerServer("COM6", 115200, TimeSpan.FromMilliseconds(100));
            Task.Factory.StartNew(() => { _listenerServer.Run(); });

            Console.Read();
            Log.Info("Application is closed.");
        }
 // Start is called before the first frame update
 void Start()
 {
     _listenerServer = new ListenerServer();
     _listenerServer.Start();
 }