Alessandro Dionisi

[HC08 - CW6] How to append a uint8_t to a string

Discussion created by Alessandro Dionisi on Nov 13, 2007
Latest reply on Nov 15, 2007 by Alessandro Dionisi
Hi all.
I need to build a string appending a uint8_t. I tried with:

Code:
void sendLQI(uint8_t linkQuality) {   char msg[30] = "Link quality: ";   (void)strcat(msg,(char *)linkQuality);   (void)Uart2_Transmit(msg,30,NULL);}

 But it doesn't seem to work. Any suggestion?

Outcomes