private bool SendToOpenSerialPort(List <byte> dataToSend) { this.UpDateRawTxTerminal(dataToSend); try { this.serialPort1.Write(SupportFunctions.ConvertByteListToByteArray(dataToSend), 0, dataToSend.Count); } catch (Exception ex) { System.Diagnostics.Debug.Print(ex.ToString()); this.UpdateStatusTerminal("TX Error - check connections", true); return(false); } return(true); }
public byte[] GetFrameAsByteArray() { return(SupportFunctions.ConvertByteListToByteArray(this.rxBuffer)); }