Hi everyone. I use the SerialClass to read from the serial port what Arduino has to say to the world. Arduino writes every second, on the serial, a number in this form: $123* ($391*, $112*, etc.))
I want to read them from VisualStudio using C++. I use the Serial::ReadData to read by, if I try to read 5 bytes ($123*) I never get in the buffer the right data, I always get half of a line and half of the next one (i.e. 3* ? ?$). In the middle I always find the ? symbol that I guess is the newline symbol. How can I read only one line as I can do using the serial monitor in the Arduino IDE?
Thanks in advance. Claudio