This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
Unless you have some very special condition, you can change your uint16 to char data[].
You can shift your data[0] = uint16 yourData >> 8, data[1] = unit16 yourData (there is a HI(yourData), LO(yourData) define statement)
You can use the _ltoa() if you want a string value representation of your number. ( taken from OSAL.c but can be found elsewhere)
Or you can use the memcpy() function.
Thanks,