public static void AddLineHook(this IUART uart, [AutoParameter] Machine machine, string contains, string pythonScript)
        {
            var engine = new UartPythonEngine(machine, uart, pythonScript);

            uart.AddLineHook(x => x.Contains(contains), engine.Hook);
        }
Exemple #2
0
 public static void AddLineHook(this IUART uart, [AutoParameter] Machine machine, string contains, string pythonScript)
 {
     var engine = new UartPythonEngine(machine, uart, pythonScript);
     uart.AddLineHook(x => x.Contains(contains), engine.Hook);
 }