public void Connect() { _reflecta = new ReflectaClient(_port); _reflecta.ErrorReceived += (_, e) => Console.WriteLine($@"Error: {e.Message}"); _compiler.Reset(); _compiler.Instruction("attach", 103); _compiler.Instruction("detach", 104); _compiler.Instruction("xyz!!", 110); _compiler.Instruction("rtz!!", 113); Exec(500, "(reset)"); Exec(100, "attach"); }
public void Disconnect() { Exec(100, "detach"); _reflecta.Dispose(); _reflecta = null; }