header + "\x25" + "\x0A"+ "O00000010"+ "\x0A" +" "+"\x0A" + "(from pc) "+ "\x0A" header is a ASCII code for header and footer,O00000010 is a program number ,(from pc) is a comment of the program, +
<pre> if (this->serialPort->IsOpen) { String^ txt = richTextBox6->Text; if (richTextBox6->Lines->Length > 0) { serialPort->Write(header + "\x25" + "\x0A"+ "O00000010"+ "\x0A" +" "+"\x0A" + "(from pc) "+ "\x0A" + txt + "\x0A" + "\x25" + header); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)