if (receiveNow.WaitOne(timeout, false)) { string t = port.ReadExisting(); buffer += t; } else { if (buffer.Length > 0) throw new ApplicationException("Response received is incomplete."); else throw new ApplicationException("No data received from phone."); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)