Preferred Hex conversion in C#
Posted: Mon 11. Sep 2017, 18:59
Is there a preferred hex conversion for can data? In c# I'm using Convert.ToInt32(fields[0], 16). Is this correct? Any help would be greatly appreciated.
Support, Knowledge Base, and FAQ
https://forum.peak-system.com/
Code: Select all
// We configurate the Message. The ID,
// Length of the Data, Message Type
// and the data
//
CANMsg.ID = Convert.ToUInt32(txtID.Text, 16);