String to unit8_t

off.toCharArray((char)buf, 50);