hello,
iam begginer in c.. and i need some help. Iam trying to send 0x20 from arduino and get the hex in c program on the pc iam using
RS-232 for Linux and Windows lirary for rs232 communication and when i send 0x20 i get 28ef30 i dont know why.. but i want to get 20 integer type value in c program
the code that i use in c is
Code:n = PollComport(cport_nr, buf, 4095); if(n > 0) { buf[n] = 0; /* always put a "null" at the end of a string! */ for(i=0; i < n; i++) { if(buf[i] < 32) /* replace unreadable control-codes by dots */ { buf[i] = '.'; } }