private void Initialize(UartController port)
 {
     _esp = new Esp8266Serial(port);
     _esp.DataReceived += OnDataReceived;
     _esp.SocketClosed += OnSocketClosed;
     _esp.SocketOpened += _esp_SocketOpened;
     _esp.Fault        += OnEspFault;
     _esp.Start();
     ThreadPool.QueueUserWorkItem(BackgroundInitialize);
 }
Ejemplo n.º 2
0
 private void Initialize(SerialPort port)
 {
     _esp = new Esp8266Serial(port);
     _esp.DataReceived += OnDataReceived;
     _esp.SocketClosed += OnSocketClosed;
     _esp.SocketOpened += _esp_SocketOpened;
     _esp.Start();
     ThreadPool.QueueUserWorkItem(BackgroundInitialize);
 }