Weird characters after device read
Hi all. I am writing a simple program that reads from the serial port. I have got the communications working file, but get weird characters after using the read command such as below:
Any ideas what might cause this? I am not that familiar with C (from java background) and to me this looks like I should read this input stream as something else than character array. However from all documentation I have seen for the read function, it always reads the data to character array.
Any pointers anyone?