03-09-2020 05:32 AM
Hello,
I was wondering if anyone could give some help as to how I could send an Array of hex numbers to a Serial Port.
I have the array data type as unsigned char, which is correct in this instance.
However using the ComWrt( function, the buffer is required to be data type char.
How is it possible to change from an unsigned char data type to char? and ultimately will this solve my problem and allow me to send packets to the serial port?
Thank in advance.
03-09-2020 08:10 AM
Just use a cast for that problem.
But remember that there may be other problems:
Does your receiver expect the number in text format or in binary format. ?
If it is binary : does it use big endean or little endean ?