Init() public method

public Init ( string processname, string processargs ) : void
processname string
processargs string
return void
Example #1
0
 static void Main(string[] args)
 {
     System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(Console.Out));
     System.Diagnostics.Trace.AutoFlush = true;
     Transport trans = new Transport();
     //@"C:\Users\sodi\YodiwoDev\sw\projects\grovepi"
     trans.Init(@"/usr/bin/python", "/home/pi/YodiwoDev/skywriter_transport.py");
     SkyWriterNode skywriternode = new SkyWriterNode(trans);
     skywriternode.Start();
     while (true)
         Task.Delay(500).Wait();
 }
Example #2
0
        static void Main(string[] args)
        {
            System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(Console.Out));
            System.Diagnostics.Trace.AutoFlush = true;
            Transport trans = new Transport();

            //@"C:\Users\sodi\YodiwoDev\sw\projects\grovepi"
            trans.Init(@"/usr/bin/python", "/home/pi/YodiwoDev/skywriter_transport.py");
            SkyWriterNode skywriternode = new SkyWriterNode(trans);

            skywriternode.Start();
            while (true)
            {
                Task.Delay(500).Wait();
            }
        }