byte[] comBuffer; int bytes; if (comport.IsOpen) { bytes = comport.BytesToRead; comBuffer = new byte[bytes]; comport.Read(comBuffer, 0, bytes); int test_bytes = comport.BytesToRead; ComBuffer_Test = new byte[test_bytes]; comport.Read(ComBuffer_Test, 0, test_bytes); for (int i = 0; i < test_bytes; i++) { sb_testdata.Append(ComBuffer_Test[i]); sb_testdata.AppendFormat(" ", ComBuffer_Test[i]); } temp_test = sb_testdata.ToString(); Image1.ImageUrl = temp_test.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)