Hi All, I have a little program outputing 16 random floats in a stream that looks like this: X,79.00, 220.00, 40.00, 38.00, 247.00, 94.00, 157.00, 143.00, 297.00, 170.00, 117.00, 156.00, 157.00, 107.00, 147.00, 128.00, (each stream begins with X and is comma separated. This is so the data can be sorted) The stream is on /dev/ttyACM0 and I want to read that stream into an array. How do i read a stream from /dev/ttyACM0 into an array in C++?
How do i read a stream from /dev/ttyACM0 into an array in C++?
The playground has a whole section on interfacing the Arduino with software on the PC, using a variety of languages. C++ is about the most finicky language possible to use. C# makes it child's play.