This is the code im using and it displays text in a text box
private void sport_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
DateTime dt = DateTime.Now;
String dtn = dt.ToShortTimeString();
txtReceive.AppendText("["+dtn+"] "+"Received: "+sport.ReadExisting()+"\n");
}
I need it to display Hexadecimal like below
F2,9E,1,0,79,0,0,0,B0,0,0,40,1,7,7,1,A4,3,1D,0,0,0,0,3,FF,1,
private void sport_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
DateTime dt = DateTime.Now;
String dtn = dt.ToShortTimeString();
txtReceive.AppendText("["+dtn+"] "+"Received: "+sport.ReadExisting()+"\n");
}
I need it to display Hexadecimal like below
F2,9E,1,0,79,0,0,0,B0,0,0,40,1,7,7,1,A4,3,1D,0,0,0,0,3,FF,1,