I'm converting uint8_t array to char array & then transmit it using gsm module but the problem while converting uint8_t to char its value changes (eg hex value 0455 become 0400 even sometime 00)
I also try to change keil optimization level3 to level2 but facing same problem.
Here is my code
uint8_t b_id[2]={11, 12};
char bike_id[2]={0};
...
...
{
...
...
//send id data
for(i=0; i<2; i++)
{
sprintf(bike_id, "%02x", b_id[i]);
sim808_send_tcp_tx(bike_id, 2);
}
}