I am reading some data from a 3D printer with an Arduino Pro Mini and this is an example of the incoming string,
What I want to end up with is 4 separate variables of X, Y, Z, and E like this
X = 0.00 Y = 0.00 Z = 450.20 E = 0.00
I can read strings, and I can convert them to numbers but how do I handle the Decimal point and I'm not sure the best way to break the data up into the 4 variables.
Would it be best to simply take the string from the buffer and then use Substring to pull out the 4 variables? Any example would be great!