hi
i receive bytes from server into microcontroller , how can i convert them to char
Normally a 'char' type is identical to an 8 bit byte type. If you're talking Unicode, a wchar_t is equal to 2 bytes and (thus) makes up 16 bits. Which do you have in mind?
ok
i use java in the server and use this code for transmission
s="from pc";
byte[] buff = s.getBytes();
DatagramPacket packet = new DatagramPacket( buff, buff.length, addr, 5001);
Comment