How to convert unint_16 to char?

Hello,

uint16_t has two bytes so you can not convert to char directly because char has only one byte.
So you need something like

 uint16_t value = 12345;
 char lo = value & 0xFF;
 char hi = value >> 8;
// or
 char buff[2];
 buff[0] = value & 0xFF;
 buff[1] = value >> 8;
// and so on

BR, Jan