public override void ReadBytesAvailable(int len) { Console.WriteLine("Bytes Available"); byte[] bytes = new byte[len]; Manager.Read(bytes, 0, len); string line = System.Text.Encoding.UTF8.GetString(bytes); Console.WriteLine(line); }
public void ReadBytesAvailable(int len) { Console.WriteLine("Bytes Available"); byte[] bytes = new byte[len]; rscMgr.Read(bytes, 0, len); string line = System.Text.Encoding.UTF8.GetString(bytes); sb.AppendLine(line); MainView.SetOutputText(sb.ToString()); }